From: Dragos Oancea Date: Fri, 31 Jan 2020 23:28:25 +0000 (+0000) Subject: [core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask() X-Git-Tag: v1.10.3^2~206^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F302%2Fhead;p=thirdparty%2Ffreeswitch.git [core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask() --- diff --git a/src/switch_log.c b/src/switch_log.c index 055298915c..2edd4171f2 100644 --- a/src/switch_log.c +++ b/src/switch_log.c @@ -310,7 +310,7 @@ SWITCH_DECLARE(uint32_t) switch_log_str2mask(const char *str) char *argv[10] = { 0 }; uint32_t mask = 0; char *p = strdup(str); - switch_log_level_t level; + switch_log_level_t level = SWITCH_LOG_INVALID; switch_assert(p);