diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-30 23:02:27 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-30 23:02:27 +0100 |
commit | 41b8bb4eef44260729d8cfd649be4e3a8ed74015 (patch) | |
tree | 4fda420f3c24a535cd2432f0e61e4983c01a4545 /options.c | |
parent | 200a1c62c6fe29d16f45306f5fa2e48ad7772a23 (diff) | |
parent | b26523c26dc7cf0a24a1adb787aa1816deb40693 (diff) | |
download | rtmux-41b8bb4eef44260729d8cfd649be4e3a8ed74015.tar.gz rtmux-41b8bb4eef44260729d8cfd649be4e3a8ed74015.tar.bz2 rtmux-41b8bb4eef44260729d8cfd649be4e3a8ed74015.zip |
Merge branch 'obsd-master'
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) |