diff options
author | paco <paco@voltanet.io> | 2018-06-22 21:35:01 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-22 23:03:24 +0200 |
commit | 74e7158c0667b9c646fe2db913af641574d64c83 (patch) | |
tree | 11d405bdf4e22c739bac57ebb7b479ac8ee284da /lib/command.c | |
parent | Merge pull request #2520 from donaldsharp/privs_smivs (diff) | |
download | frr-74e7158c0667b9c646fe2db913af641574d64c83.tar.xz frr-74e7158c0667b9c646fe2db913af641574d64c83.zip |
lib: null check (Coverity 1470150)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to '')
-rw-r--r-- | lib/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c index 4ab47e5fc..d666e8c59 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); |