diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2018-06-25 12:43:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-25 12:43:31 -0400 |
| commit | 91609fe00b484b93521fdc2059756e11e4e5aebf (patch) | |
| tree | 3f3d0b42c764173b92385fe7d557b3db2ee01070 /lib/command.c | |
| parent | 6bb6f26c4e586fb8a4b2fb22cd05a76e14cdeb8e (diff) | |
| parent | 74e7158c0667b9c646fe2db913af641574d64c83 (diff) | |
Merge pull request #2536 from pacovn/Coverity_1470150_Dereference_null_return_value
lib: null check (Coverity 1470150)
Diffstat (limited to 'lib/command.c')
| -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); |
