From 66d1d99668b164d35b13f179d13f33085bea610b Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Sat, 28 Jul 2007 22:51:37 -0600 Subject: [PATCH] add missing braces in logger.c --- misc-utils/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5