projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc23859
)
journal: add stdout_stream_scan() comment (#4102)
author
Vito Caputo
<vcaputo@gnugeneration.com>
Wed, 28 Sep 2016 05:35:48 +0000
(22:35 -0700)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Wed, 28 Sep 2016 05:35:48 +0000
(07:35 +0200)
When s->length is zero this function doesn't do anything, note that in a
comment.
src/journal/journald-stream.c
patch
|
blob
|
history
diff --git
a/src/journal/journald-stream.c
b/src/journal/journald-stream.c
index
4ad16ee
..
bc092f3
100644
(file)
--- 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;