commit bcbc1ef5c4cf4875a4d66e7dc0919da88a6096a5
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Mon Oct 31 11:43:34 2022 +0100
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Mon Oct 31 11:46:10 2022 +0100

    readstdin: add a comment
    
    Maybe too obvious / redundant, but OK.

diff --git a/dmenu.c b/dmenu.c
index e786d7a..8d96b6c 100644
--- 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)

Reply via email to