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

2
tmux.c
View File

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