readstdin: add a comment
bcbc1ef5
Maybe too obvious / redundant, but OK.
1 file(s) · +1 −1
Maybe too obvious / redundant, but OK.
| 562 | 562 | line[len - 1] = '\0'; |
|
| 563 | 563 | items[i].text = line; |
|
| 564 | 564 | items[i].out = 0; |
|
| 565 | - | line = NULL; |
|
| 565 | + | line = NULL; /* next call of getline() allocates a new line */ |
|
| 566 | 566 | } |
|
| 567 | 567 | free(line); |
|
| 568 | 568 | if (items) |