1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* keygen.c (keygen_set_std_prefs): Properly handle an empty preference

string.

* misc.c (string_to_compress_algo): "none" is a bad choice since it
conflicts with the "none" in setpref.
This commit is contained in:
David Shaw 2002-11-21 16:25:05 +00:00
parent 2e4e257f42
commit 1c6bcef3ce
3 changed files with 42 additions and 32 deletions

View file

@ -543,8 +543,6 @@ string_to_compress_algo(const char *string)
{
if(ascii_strcasecmp(string,"uncompressed")==0)
return 0;
else if(ascii_strcasecmp(string,"none")==0)
return 0;
else if(ascii_strcasecmp(string,"zip")==0)
return 1;
else if(ascii_strcasecmp(string,"zlib")==0)