summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2014-10-29 23:50:03 +0300
committerAlex Turbov <i.zaufi@gmail.com>2014-10-29 23:50:03 +0300
commit470e2cecec1e5a3f12cdb5d7c9e0f5c8bfa32cfa (patch)
tree8ee597b85f000556dd8074c89e6b8f0fa186cc3a
parent9c1f5b012a34b40c558ac8d38f4dd966cdd81369 (diff)
Remove garbage code: first of all `r` used in compare was uninitialized
here! Second, it is completely useless (and remains after cleaning up systemd crap).
-rw-r--r--src/shared/log.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index af6a983087..70708cbf0e 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -186,12 +186,6 @@ int log_open(void) {
getpid() == 1 ||
isatty(STDERR_FILENO) <= 0) {
- if (log_target == LOG_TARGET_AUTO)
- if (r >= 0) {
- log_close_syslog();
- log_close_console();
- return r;
- }
if (log_target == LOG_TARGET_SYSLOG_OR_KMSG ||
log_target == LOG_TARGET_SYSLOG) {
r = log_open_syslog();