commit dac425496aecab2114a65c3fbe975131c5cbaaf7
parent bafffb2f1ed8fcc70f5ee368fa39be5b3b644399
Author: 8dcc <8dcc.git@gmail.com>
Date:   Mon,  2 Jan 2023 15:54:29 +0100
[dwm][patch][layoutmenu] Fix -Waddress warning
Compare (c[0] == '\0') instead of (c == '\0'), because the array address
will never be null.
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dwm.suckless.org/patches/layoutmenu/dwm-layoutmenu-6.2.diff b/dwm.suckless.org/patches/layoutmenu/dwm-layoutmenu-6.2.diff
@@ -61,7 +61,7 @@ index 4465af1..2508a0a 100644
 +	s = fgets(c, sizeof(c), p);
 +	pclose(p);
 +
-+	if (!s || *s == '\0' || c == '\0')
++	if (!s || *s == '\0' || c[0] == '\0')
 +		 return;
 +
 +	i = atoi(c);
diff --git a/dwm.suckless.org/patches/layoutmenu/index.md b/dwm.suckless.org/patches/layoutmenu/index.md
@@ -24,5 +24,6 @@ Extra layouts
 ## Download
 * [dwm-layoutmenu-6.2.diff](dwm-layoutmenu-6.2.diff)
 
-## Author
-* [tdu](https://github.com/tdukv) - < tdukv at protonmail com>
+## Authors
+* [tdu](https://github.com/tdukv) - < tdukv at protonmail com >
+* 8dcc - 8dcc.git@gmail.com (`-Waddress` fix)