aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--swaygrab/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c
index 403f7b38..82d623e7 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -229,7 +229,7 @@ int main(int argc, char **argv) {
229 sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind); 229 sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind);
230 } 230 }
231 } else if (optind < argc) { 231 } else if (optind < argc) {
232 file = argv[optind]; 232 file = strdup(argv[optind]);
233 } 233 }
234 234
235 int socketfd = ipc_open_socket(socket_path); 235 int socketfd = ipc_open_socket(socket_path);