diff options
author | Joanne Koong <joannelkoong@gmail.com> | 2024-07-16 12:57:59 -0700 |
---|---|---|
committer | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-07-17 23:35:55 +0200 |
commit | 37bc4eb03c39f6832303defdf460eb90f6bbb9bd (patch) | |
tree | f77c038245383a94ff382cfa55ea0da0e661e346 /lib/fuse_log.c | |
parent | 54b7d9a3188c76fd0ef50d2dde68531334506563 (diff) | |
download | libfuse-37bc4eb03c39f6832303defdf460eb90f6bbb9bd.tar.gz |
fuse_log: initialize sys_log_level variable to avoid compiler warning
Diffstat (limited to 'lib/fuse_log.c')
-rw-r--r-- | lib/fuse_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuse_log.c b/lib/fuse_log.c index 95d6379..c1d16c1 100644 --- a/lib/fuse_log.c +++ b/lib/fuse_log.c @@ -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(); -}
\ No newline at end of file +} |