mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Bug fix in "showpref"
Allow setting a no-compression preference
This commit is contained in:
parent
88fbd0dfcf
commit
ebd148e553
5 changed files with 50 additions and 4 deletions
|
@ -175,7 +175,7 @@ set_one_pref (ulong val, int type, int (*cf)(int), byte *buf, int *nbuf)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!val || val > 127 || cf (val)) {
|
||||
if (cf (val)) {
|
||||
log_info (_("preference %c%lu is not valid\n"), type, val);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue