Introduction
Introduction Statistics Contact Development Disclaimer Help
readstdin: add a comment - dmenu - dynamic menu
git clone git://git.suckless.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit bcbc1ef5c4cf4875a4d66e7dc0919da88a6096a5
parent 689d9bfcf6859e5ce85c296ff0f23b5c08b1fedc
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 31 Oct 2022 11:43:34 +0100
readstdin: add a comment
Maybe too obvious / redundant, but OK.
Diffstat:
M dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/dmenu.c b/dmenu.c
@@ -562,7 +562,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)
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.