From 60f0b42b1cd3cb43af17ae11457995525551515c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 21 Feb 2017 21:14:33 +0100 Subject: [PATCH] Get rid of another FORWARD_NULL --- managers/core_option_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/managers/core_option_manager.c b/managers/core_option_manager.c index 40027dabcc..6669eaea37 100644 --- a/managers/core_option_manager.c +++ b/managers/core_option_manager.c @@ -42,7 +42,8 @@ static bool core_option_manager_parse_variable( if (!string_is_empty(var->value)) value = strdup(var->value); - desc_end = strstr(value, "; "); + if (value) + desc_end = strstr(value, "; "); if (!desc_end) goto error;