all repos — dmenu @ 76eb5783046cf89ba6b7e9f8cdab35fe86d07a82

my build of dmenu

fix: Do not crash on e.g. dmenu < /dev/null
S. Gilles sgilles@math.umd.edu
Tue, 28 Jun 2016 01:11:50 -0400
commit

76eb5783046cf89ba6b7e9f8cdab35fe86d07a82

parent

44c7de3dcf49ee568863f55610f40c7a05b4dfe7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M dmenu.cdmenu.c

@@ -480,7 +480,7 @@ }

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