summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaforge <laforge>2005-04-18 14:39:10 +0000
committerlaforge <laforge>2005-04-18 14:39:10 +0000
commit86a3e3b741778148e47227939571489c8e05a0b1 (patch)
tree88610bd796038057d86348f706bd0f4a239d7e61
parente5c10e1812e320d48aceee96afa5e9d167f9c796 (diff)
add missing 'else' preventing syslog from working
-rw-r--r--ulogd/ulogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ulogd/ulogd.c b/ulogd/ulogd.c
index 30367ae..3bba7e1 100644
--- a/ulogd/ulogd.c
+++ b/ulogd/ulogd.c
@@ -511,7 +511,7 @@ static int logfile_open(const char *name)
if (!strcmp(name, "syslog")) {
openlog("ulogd", LOG_PID, LOG_DAEMON);
logfile = &syslog_dummy;
- } if (!strcmp(name,"stdout"))
+ } else if (!strcmp(name,"stdout"))
logfile = stdout;
else {
logfile = fopen(name, "a");