Bug fix: $TMUX wasn't being reused properly

This commit is contained in:
Nicolas Viennot 2013-06-14 22:38:39 -04:00
parent 16dd13979e
commit 53355a0b92

8
tmux.c
View File

@ -394,9 +394,11 @@ main(int argc, char **argv)
}
/* -L or default set. */
if ((path = makesocketpath(label)) == NULL) {
fprintf(stderr, "can't create socket\n");
exit(1);
if (!path) {
if ((path = makesocketpath(label)) == NULL) {
fprintf(stderr, "can't create socket\n");
exit(1);
}
}
}
free(label);