]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask() 302/head
authorDragos Oancea <dragos@signalwire.com>
Fri, 31 Jan 2020 23:28:25 +0000 (23:28 +0000)
committerDragos Oancea <dragos@signalwire.com>
Fri, 31 Jan 2020 23:28:25 +0000 (23:28 +0000)
src/switch_log.c

index 055298915ca4726d90dcdc67fa9e64ec426b4c2d..2edd4171f24f5a1702ba8698315b68eb9d02468c 100644 (file)
@@ -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);