summaryrefslogtreecommitdiffabout
path: root/lib/stream.c
Side-by-side diff
Diffstat (limited to 'lib/stream.c') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.c b/lib/stream.c
index d039c08..c217ca6 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -222,18 +222,18 @@ _stream_flush_buffer(struct _smap_stream *stream, int all)
if (rc)
return rc;
_stream_advance_buffer(stream, size);
}
if (stream->level) {
if (all) {
- if (rc = _force_flush_buffer(stream))
+ if ((rc = _force_flush_buffer(stream)))
return rc;
} else if (BUFFER_FULL_P(stream)) {
if (stream->flags & SMAP_STREAM_EXPBUF)
return _stream_realloc_buffer(stream, 0);
- if (rc = _force_flush_buffer(stream))
+ if ((rc = _force_flush_buffer(stream)))
return rc;
}
}
}
} else if (all)
_stream_advance_buffer(stream, stream->level);

Return to:

Send suggestions and report system problems to the System administrator.