projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c7de3
)
fix: Do not crash on e.g. dmenu < /dev/null
author
S. Gilles
<sgilles@math.umd.edu>
Tue, 28 Jun 2016 05:11:50 +0000
(
01:11
-0400)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 28 Jun 2016 15:51:28 +0000
(17:51 +0200)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index 0e7b70bdc74043a46bae25d34f78969d1c9e8372..e926ecac26ec61f67f1add2e7ed12a6789f3ca50 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-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);
}