Get rid of another FORWARD_NULL

This commit is contained in:
twinaphex 2017-02-21 21:14:33 +01:00
parent 5eec1c1f39
commit 60f0b42b1c

View File

@ -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;