diff options
author | nicm <nicm> | 2022-06-02 21:19:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-06-09 12:28:34 +0100 |
commit | 988e59cf3e0354209c0d068b244fb96bf1f0183f (patch) | |
tree | 271aa316a469ba65d46e689cf1461c43823bcbe1 /cmd-run-shell.c | |
parent | 30e06e9d85a54648dd11b107f467c608f153f62c (diff) | |
download | rtmux-988e59cf3e0354209c0d068b244fb96bf1f0183f.tar.gz rtmux-988e59cf3e0354209c0d068b244fb96bf1f0183f.tar.bz2 rtmux-988e59cf3e0354209c0d068b244fb96bf1f0183f.zip |
Do not attempt to use client in config file (it will be NULL), GitHub
issue 3206.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r-- | cmd-run-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c index db5774d2..560eface 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -84,7 +84,7 @@ cmd_run_shell_print(struct job *job, const char *msg) if (cdata->wp_id != -1) wp = window_pane_find_by_id(cdata->wp_id); - if (wp == NULL && cdata->item != NULL) + if (wp == NULL && cdata->item != NULL && cdata->client != NULL) wp = server_client_get_pane(cdata->client); if (wp == NULL && cmd_find_from_nothing(&fs, 0) == 0) wp = fs.wp; |