summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-12 10:01:25 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-12 10:01:25 +0000
commit1a2e66f345a0b3b87654a0ef1765d4e5700d3faa (patch)
tree1755492d934077b03c2199527cca2ed8aa07420a /tmux.c
parent39dc80975144692e0fbbc562ac3b0dff7a7f8271 (diff)
parent2a5702a936829c30b1c427028fdb75a21e2e6771 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/tmux.c b/tmux.c
index 3c1feccc..e296a13a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -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);