Fix uninitialized variable warning in swaygrab

master
Drew DeVault 9 years ago
parent 2ef7cf9e97
commit 0bb872ab70

@ -175,7 +175,7 @@ int main(int argc, char **argv) {
} }
} }
char *file, *output; char *file = NULL, *output = NULL;
if (raw) { if (raw) {
if (optind >= argc) { if (optind >= argc) {
sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind); sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind);

Loading…
Cancel
Save