diff --git a/patch/bar_layoutmenu.c b/patch/bar_layoutmenu.c index 1b95069..bab4e47 100644 --- a/patch/bar_layoutmenu.c +++ b/patch/bar_layoutmenu.c @@ -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);