diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-03-12 10:01:25 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-03-12 10:01:25 +0000 |
commit | 1a2e66f345a0b3b87654a0ef1765d4e5700d3faa (patch) | |
tree | 1755492d934077b03c2199527cca2ed8aa07420a /tmux.c | |
parent | 39dc80975144692e0fbbc562ac3b0dff7a7f8271 (diff) | |
parent | 2a5702a936829c30b1c427028fdb75a21e2e6771 (diff) | |
download | rtmux-1a2e66f345a0b3b87654a0ef1765d4e5700d3faa.tar.gz rtmux-1a2e66f345a0b3b87654a0ef1765d4e5700d3faa.tar.bz2 rtmux-1a2e66f345a0b3b87654a0ef1765d4e5700d3faa.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -368,12 +368,15 @@ main(int argc, char **argv) path[strcspn(path, ",")] = '\0'; } } - if (path == NULL && (path = make_label(label, &cause)) == NULL) { - if (cause != NULL) { - fprintf(stderr, "%s\n", cause); - free(cause); + if (path == NULL) { + if ((path = make_label(label, &cause)) == NULL) { + if (cause != NULL) { + fprintf(stderr, "%s\n", cause); + free(cause); + } + exit(1); } - exit(1); + flags |= CLIENT_DEFAULTSOCKET; } socket_path = path; free(label); |