From: paco Date: Fri, 22 Jun 2018 19:35:01 +0000 (+0200) Subject: lib: null check (Coverity 1470150) X-Git-Tag: frr-6.1-dev~255^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=74e7158c0667b9c646fe2db913af641574d64c83;p=matthieu%2Ffrr.git lib: null check (Coverity 1470150) Signed-off-by: F. Aragon --- diff --git a/lib/command.c b/lib/command.c index 4ab47e5fc2..d666e8c593 100644 --- a/lib/command.c +++ b/lib/command.c @@ -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);