1
0

fix: Do not crash on e.g. dmenu < /dev/null

This commit is contained in:
S. Gilles 2016-06-28 01:11:50 -04:00 committed by Hiltjo Posthuma
parent 44c7de3dcf
commit 76eb578304

View File

@ -480,7 +480,7 @@ readstdin(void)
}
if (items)
items[i].text = NULL;
inputw = TEXTW(items[imax].text);
inputw = items ? TEXTW(items[imax].text) : 0;
lines = MIN(lines, i);
}