From a8873ed4fdc6f76723c7a581d1a8bef596cf6dc3 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 5 Feb 2016 12:51:19 +0100 Subject: [PATCH] Fix #1520: Program returns random data in a function Added default return to non void functions level_syslog and level_stdout. --- other/bootstrap_daemon/src/log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/other/bootstrap_daemon/src/log.c b/other/bootstrap_daemon/src/log.c index a0ac20d9..ee3a1421 100644 --- a/other/bootstrap_daemon/src/log.c +++ b/other/bootstrap_daemon/src/log.c @@ -75,6 +75,8 @@ int level_syslog(LOG_LEVEL level) case LOG_LEVEL_ERROR: return LOG_ERR; } + + return LOG_INFO; } void log_syslog(LOG_LEVEL level, const char *format, va_list args) @@ -92,6 +94,8 @@ FILE *level_stdout(LOG_LEVEL level) case LOG_LEVEL_ERROR: return stderr; } + + return stdout; } void log_stdout(LOG_LEVEL level, const char *format, va_list args)