diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2016-09-27 22:35:48 -0700 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-09-28 07:35:48 +0200 |
commit | 95cbb83c2061237bfd3760c470f6c91cf3ec069b (patch) | |
tree | 8c52d93afd703efce9ccaa93eb115490e57c3f16 | |
parent | cc238590e472e8bbba6da262ac985ea59ad52c72 (diff) |
journal: add stdout_stream_scan() comment (#4102)
When s->length is zero this function doesn't do anything, note that in a
comment.
-rw-r--r-- | src/journal/journald-stream.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 4ad16ee41c..bc092f3c12 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -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; |