From b26523c26dc7cf0a24a1adb787aa1816deb40693 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 30 May 2019 20:54:03 +0000 Subject: Remove a leftover abort and some fixes from cppcheck. --- options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options.c') diff --git a/options.c b/options.c index 7d79cf30..7e12544d 100644 --- a/options.c +++ b/options.c @@ -365,7 +365,8 @@ options_array_set(struct options_entry *o, u_int idx, const char *value, pr = cmd_parse_from_string(value, NULL); switch (pr->status) { case CMD_PARSE_EMPTY: - *cause = xstrdup("empty command"); + if (cause != NULL) + *cause = xstrdup("empty command"); return (-1); case CMD_PARSE_ERROR: if (cause != NULL) -- cgit