Merge pull request #2536 from pacovn/Coverity_1470150_Dereference_null_return_value

lib: null check (Coverity 1470150)
This commit is contained in:
Jafar Al-Gharaibeh 2018-06-25 12:43:31 -04:00 committed by GitHub
commit 91609fe00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2471,6 +2471,9 @@ void command_setup_early_logging(const char *dest, const char *level)
}
token = strstr(dest, ":");
if (token == NULL)
return;
token++;
set_log_file(NULL, token, zlog_default->default_lvl);