journal: add stdout_stream_scan() comment (#4102)

When s->length is zero this function doesn't do anything, note that in a
comment.
This commit is contained in:
Vito Caputo
2016-09-27 22:35:48 -07:00
committed by Martin Pitt
parent cc238590e4
commit 95cbb83c20

View File

@@ -393,6 +393,9 @@ static int stdout_stream_scan(StdoutStream *s, bool force_flush) {
p = s->buffer;
remaining = s->length;
/* XXX: This function does nothing if (s->length == 0) */
for (;;) {
char *end;
size_t skip;