diff options
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 */ |