Merge pull request #302 from dragos-oancea/switch_log-res-undefined

[core] scan-build: The result of the '<<' expression is undefined - switch_log_str2mask()
This commit is contained in:
Andrey Volk 2020-02-12 00:55:04 +04:00 committed by GitHub
commit 8151591b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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);