summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-26 21:48:41 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-26 21:48:41 +0000
commit26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a (patch)
tree4f0246453c39783f476c2b088a961d3fc0bf2da8 /src/common/util.c
parent64fc462a3a8687845c255c32941fee98a31eb3f3 (diff)
downloadtor-26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a.tar.gz
tor-26f3cb865202160fe6b8ecfb20a0e41fea3a4a6a.zip
Add SysLog option to direct log messages to the system log instead of a FILE*.
svn:r2591
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index d7f2f1a289..023463bcf3 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1740,13 +1740,17 @@ try_next_line:
while(*value && isspace((int)*value))
value++;
+#if 0
if(!*end || !*value) { /* only a key on this line. no value. */
*end = 0;
log_fn(LOG_WARN,"Line has keyword '%s' but no value. Failing.",key);
return -1;
}
+#endif
*end = 0; /* null it out */
+ tor_assert(key);
+ tor_assert(value);
log_fn(LOG_DEBUG,"got keyword '%s', value '%s'", key, value);
*key_out = key, *value_out = value;
return 1;