diff options
author | nicm <nicm> | 2019-05-30 20:54:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-30 20:54:03 +0000 |
commit | b26523c26dc7cf0a24a1adb787aa1816deb40693 (patch) | |
tree | 473869a72aa2196a12ef1d7ebf7530246282130a /options.c | |
parent | 8fb796b5b3fbd7ff430d1b6ad2a49f97feea8f3c (diff) | |
download | rtmux-b26523c26dc7cf0a24a1adb787aa1816deb40693.tar.gz rtmux-b26523c26dc7cf0a24a1adb787aa1816deb40693.tar.bz2 rtmux-b26523c26dc7cf0a24a1adb787aa1816deb40693.zip |
Remove a leftover abort and some fixes from cppcheck.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |