aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog5
-rw-r--r--util/miscutil.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 42c77bfe9..8be8f3fb8 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 14 14:20:38 CEST 2000 Werner Koch <[email protected]>
+
+ * miscutil.c (answer_is_yes_no_quit): Swapped order of yes/no test
+ so that no is returned for an empty input. By David Champion.
+
Wed Sep 6 17:55:47 CEST 2000 Werner Koch <[email protected]>
* iobuf.c: Use fopen64 insead of fopen when available.
diff --git a/util/miscutil.c b/util/miscutil.c
index 0b87f1b84..ed2915ef1 100644
--- a/util/miscutil.c
+++ b/util/miscutil.c
@@ -310,16 +310,16 @@ answer_is_yes_no_quit( const char *s )
char *short_no = _("nN");
char *short_quit = _("qQ");
- if( !stricmp(s, long_yes ) )
- return 1;
if( !stricmp(s, long_no ) )
return 0;
+ if( !stricmp(s, long_yes ) )
+ return 1;
if( !stricmp(s, long_quit ) )
return -1;
- if( strchr( short_yes, *s ) && !s[1] )
- return 1;
if( strchr( short_no, *s ) && !s[1] )
return 0;
+ if( strchr( short_yes, *s ) && !s[1] )
+ return 1;
if( strchr( short_quit, *s ) && !s[1] )
return -1;
if( !stricmp(s, "yes" ) )