mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 07:59:35 +00:00
Merge pull request #2536 from pacovn/Coverity_1470150_Dereference_null_return_value
lib: null check (Coverity 1470150)
This commit is contained in:
commit
91609fe00b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user