1
0
mirror of git://git.suckless.org/dmenu synced 2024-12-12 09:25:31 +00:00

readstdin: add a comment

Maybe too obvious / redundant, but OK.
This commit is contained in:
Hiltjo Posthuma 2022-10-31 11:43:34 +01:00
parent 689d9bfcf6
commit bcbc1ef5c4

View File

@ -562,7 +562,7 @@ readstdin(void)
line[len - 1] = '\0'; line[len - 1] = '\0';
items[i].text = line; items[i].text = line;
items[i].out = 0; items[i].out = 0;
line = NULL; line = NULL; /* next call of getline() allocates a new line */
} }
free(line); free(line);
if (items) if (items)