From 1c6bcef3ce677a4bda8d3586b85e12cbeda4c242 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 21 Nov 2002 16:25:05 +0000 Subject: * 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. --- g10/misc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'g10/misc.c') diff --git a/g10/misc.c b/g10/misc.c index 6781f779c..fee040f86 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -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) -- cgit