summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 51e940c..e9fe653 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -573,7 +573,7 @@ readstdin(void)
line[len - 1] = '\0';
items[i].text = line;
items[i].out = 0;
- line = NULL;
+ line = NULL; /* next call of getline() allocates a new line */
}
free(line);
if (items)