summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2022-10-31 11:43:34 +0100
committerRafael Marçalo <raroma09@gmail.com>2022-11-01 15:06:44 +0000
commit834ced0f1454eedc18e17b459f7496e00c1b4284 (patch)
tree8f736645025a2451bc07be5e08e13606b79bce40
parent5cab1030790feede7052f650eee8ee90ed0a9e7e (diff)
readstdin: add a comment
Maybe too obvious / redundant, but OK.
-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)