X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer.c;fp=src%2Fcommon%2Fconsumer%2Fconsumer.c;h=688492e439d0811cc17308667055a5bcc7c3b9d5;hp=4aee51813aea2b820f5153255cbfc04254ece245;hb=611cce88797fd71f50d9bcb6e2921f20b3445ca5;hpb=20f03252e998b92e5e3a154249987eb7e2f1f359 diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 4aee51813..688492e43 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -3146,7 +3146,7 @@ ssize_t lttng_consumer_read_subbuffer(struct lttng_consumer_stream *stream, struct lttng_consumer_local_data *ctx, bool locked_by_caller) { - ssize_t ret, written_bytes; + ssize_t ret, written_bytes = 0; struct stream_subbuffer subbuffer = {}; if (!locked_by_caller) {