diff options
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -480,7 +480,7 @@ readstdin(void) | |||
480 | } | 480 | } |
481 | if (items) | 481 | if (items) |
482 | items[i].text = NULL; | 482 | items[i].text = NULL; |
483 | inputw = TEXTW(items[imax].text); | 483 | inputw = items ? TEXTW(items[imax].text) : 0; |
484 | lines = MIN(lines, i); | 484 | lines = MIN(lines, i); |
485 | } | 485 | } |
486 | 486 | ||