From 74e7158c0667b9c646fe2db913af641574d64c83 Mon Sep 17 00:00:00 2001 From: paco Date: Fri, 22 Jun 2018 21:35:01 +0200 Subject: lib: null check (Coverity 1470150) Signed-off-by: F. Aragon --- lib/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/command.c') 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); -- cgit v1.2.3