diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-11-21 05:55:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-11-21 05:55:03 +0000 |
commit | 5e9ba094bca17f600fc5747701017c95ecb26189 (patch) | |
tree | 4ee580ed8f44c5a0c73c9ef3adb7a6231efb2496 /src | |
parent | 1d9b1550e0773ff3599b743ed5b2960e4b28bce5 (diff) | |
download | tor-5e9ba094bca17f600fc5747701017c95ecb26189.tar.gz tor-5e9ba094bca17f600fc5747701017c95ecb26189.zip |
Fix incorrect error message
svn:r862
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 24c9902034..b28eb6d5e2 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -572,7 +572,8 @@ try_next_line: 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 */ |