layoutmenu: fixing warning from original patch

This commit is contained in:
bakkeby 2023-06-27 14:59:48 +02:00
parent 10a6640732
commit 1a1ce47917

View File

@ -9,7 +9,7 @@ layoutmenu(const Arg *arg) {
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);