diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-03-15 14:01:17 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-03-15 14:01:17 +0000 |
commit | 60bb8fa86d040c671cc9f8e4df788b3b7116d8b3 (patch) | |
tree | f8d330295b569cd67f442c730e36c09b506359ec /cmd-run-shell.c | |
parent | 7019937b52488a726b85c5cdfc4616532fd620d1 (diff) | |
parent | 9017af23556abdc31ba37c925adf6e0f1bb12671 (diff) | |
download | rtmux-60bb8fa86d040c671cc9f8e4df788b3b7116d8b3.tar.gz rtmux-60bb8fa86d040c671cc9f8e4df788b3b7116d8b3.tar.bz2 rtmux-60bb8fa86d040c671cc9f8e4df788b3b7116d8b3.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index 4f30d05d..73ed79f4 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -20,6 +20,7 @@ #include <sys/types.h> #include <sys/wait.h> +#include <ctype.h> #include <stdlib.h> #include <string.h> @@ -190,8 +191,12 @@ cmd_run_shell_timer(__unused int fd, __unused short events, void* arg) &error); } if (status == CMD_PARSE_ERROR) { - cmdq_error(cdata->item, "%s", error); - free(error); + if (cdata->item == NULL) { + *error = toupper((u_char)*error); + status_message_set(c, -1, 1, "%s", error); + } else + cmdq_error(cdata->item, "%s", error); + free(error); } } |