From 0bb872ab7097166c11e493fdee91a2bc5caf0c84 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 27 Nov 2015 16:01:06 -0500 Subject: [PATCH] Fix uninitialized variable warning in swaygrab --- swaygrab/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaygrab/main.c b/swaygrab/main.c index 2c169017..99d5f88b 100644 --- a/swaygrab/main.c +++ b/swaygrab/main.c @@ -175,7 +175,7 @@ int main(int argc, char **argv) { } } - char *file, *output; + char *file = NULL, *output = NULL; if (raw) { if (optind >= argc) { sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind);