From 66c08857fbf78a24e7770e1d1bf8938bb938b271 Mon Sep 17 00:00:00 2001 From: Dan Sledz Date: Fri, 5 Dec 2008 17:29:38 -0800 Subject: [PATCH] Fix logging to syslog --- source/lib/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/debug.c b/source/lib/debug.c index d91b55dd23b..b3e1a72b954 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -851,7 +851,7 @@ void check_log_size( void ) ret = vasprintf(&msgbuf, format_str, ap); va_end(ap); - if (ret == -1) { + if (ret != -1) { syslog(priority, "%s", msgbuf); } SAFE_FREE(msgbuf); -- 2.34.1