mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix #1520: Program returns random data in a function
Added default return to non void functions level_syslog and level_stdout.
This commit is contained in:
parent
94cc8b11ff
commit
a8873ed4fd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user