aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
diff options
context:
space:
mode:
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index dfc175a8..b431872a 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -308,9 +308,11 @@ int main(int argc, char **argv) {
308 } 308 }
309 free(cmdtype); 309 free(cmdtype);
310 310
311 char *command = strdup(""); 311 char *command = NULL;
312 if (optind < argc) { 312 if (optind < argc) {
313 command = join_args(argv + optind, argc - optind); 313 command = join_args(argv + optind, argc - optind);
314 } else {
315 command = strdup("");
314 } 316 }
315 317
316 int ret = 0; 318 int ret = 0;