Remove a leftover abort and some fixes from cppcheck.

This commit is contained in:
nicm
2019-05-30 20:54:03 +00:00
parent 8fb796b5b3
commit b26523c26d
5 changed files with 5 additions and 6 deletions

View File

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