commit 059a147
glt
·
2026-10-25 13:18:15 +0000 UTC
parent b2d1c18
fix uninit'd dirn for free
1 files changed,
+1,
-2
M
wawa.c
M
wawa.c
+1,
-2
1@@ -403,7 +403,7 @@ static const struct wl_registry_listener registry_listener = {
2 int
3 main(int argc, char *argv[])
4 {
5- int len;
6+ int len, dirn = 0;
7 char *mode = NULL, *path = NULL;
8 struct stat st;
9
10@@ -424,7 +424,6 @@ main(int argc, char *argv[])
11 break;
12 case 3:;
13 struct dirent **namelist = NULL, *name;
14- int dirn = 0;
15
16 mode = argv[1]; path = argv[2];
17 mode: