[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix incorrect error message



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv5008/src/common

Modified Files:
	util.c 
Log Message:
Fix incorrect error message

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- util.c	18 Nov 2003 08:20:09 -0000	1.41
+++ util.c	21 Nov 2003 05:55:03 -0000	1.42
@@ -572,7 +572,8 @@
     value++;
 
   if(!*end || !*value) { /* only a key on this line. no value. */
-    log_fn(LOG_WARN,"Line has keyword '%s' but no value. Skipping.",s);
+    *end = 0;
+    log_fn(LOG_WARN,"Line has keyword '%s' but no value. Skipping.",key);
     goto try_next_line;
   }
   *end = 0; /* null it out */