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 | |
| parent | 3a743cb7ec5fd1e91e0803487c606cf63e54c22b (diff) | |
lib: null check (Coverity 1470150)
Signed-off-by: F. Aragon <paco@voltanet.io>
| -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 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); |
