From: LaMont Jones Date: Sun, 29 Jul 2007 04:51:37 +0000 (-0600) Subject: add missing braces in logger.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66d1d99668b164d35b13f179d13f33085bea610b;p=util-linux add missing braces in logger.c --- diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 40db42b5..49ba5dc7 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -89,10 +89,10 @@ mysyslog(int fd, int logflags, int pri, char *tag, char *msg) { time_t now; if (fd > -1) { - if (logflags & LOG_PID) + if (logflags & LOG_PID) { snprintf (pid, sizeof(pid)-1, "[%d]", getpid()); pid[sizeof(pid)-1]=0; - else + } else pid[0] = 0; if (tag) cp = tag;