fuse_log: initialize sys_log_level variable to avoid compiler warning

This commit is contained in:
Joanne Koong 2024-07-16 12:57:59 -07:00 committed by Bernd Schubert
parent 54b7d9a318
commit 37bc4eb03c

View File

@ -23,7 +23,7 @@ static void default_log_func(__attribute__((unused)) enum fuse_log_level level,
const char *fmt, va_list ap)
{
if (to_syslog) {
int sys_log_level;
int sys_log_level = LOG_ERR;
/*
* with glibc fuse_log_level has identical values as
@ -93,4 +93,4 @@ void fuse_log_enable_syslog(const char *ident, int option, int facility)
void fuse_log_close_syslog(void)
{
closelog();
}
}