Fix uninitialized variable warning in swaygrab
This commit is contained in:
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 (optind >= argc) {
|
||||
sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind);
|
||||
|
|
Loading…
Reference in a new issue