mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
layoutmenu: fixing warning from original patch
This commit is contained in:
parent
10a6640732
commit
1a1ce47917
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user