changeset 673:8af8709c349e

[project @ 1994-09-07 22:58:35 by jwe]
author jwe
date Wed, 07 Sep 1994 22:59:04 +0000
parents 066e1551639c
children 71e8b2b6c3fe
files src/user-prefs.cc src/utils.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/user-prefs.cc
+++ b/src/user-prefs.cc
@@ -41,9 +41,9 @@
 // Check the value of a string variable to see if it it's ok to do
 // something.
 //
+//   return of  1 => always ok.
+//   return of  0 => never ok.
 //   return of -1 => ok, but give me warning (default).
-//   return of  0 => always ok.
-//   return of  1 => never ok.
 
 static int
 check_str_pref (char *var)
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -525,7 +525,7 @@
 	  gripe_empty_arg (name, 0);
 	  is_empty = 1;
 	}
-      else if (is_empty > 0)
+      else if (flag == 0)
 	{
 	  gripe_empty_arg (name, 1);
 	  is_empty = -1;