aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 0e7b70b..e926eca 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -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