summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc/syslog.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/misc/syslog.c b/src/misc/syslog.c
index eb782984..6d2a864a 100644
--- a/src/misc/syslog.c
+++ b/src/misc/syslog.c
@@ -82,10 +82,7 @@ static void _vsyslog(int priority, const char *message, va_list ap)
int l, l2;
int hlen;
- if (log_fd < 0) {
- __openlog();
- if (log_fd < 0) return;
- }
+ if (log_fd < 0) __openlog();
if (!(priority & LOG_FACMASK)) priority |= log_facility;