mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 04:04:31 +08:00
fuse_log: initialize sys_log_level variable to avoid compiler warning
This commit is contained in:
parent
54b7d9a318
commit
37bc4eb03c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user