From: David Goulet Date: Fri, 12 Jul 2013 14:16:26 +0000 (-0400) Subject: Fix: zeroed snapshot output at init X-Git-Tag: v2.3.0-rc1~39 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d4b5a90c528146f516a80c4e826bd1cfbd40cee8;p=lttng-tools.git Fix: zeroed snapshot output at init Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/snapshot.c b/src/bin/lttng-sessiond/snapshot.c index 4c23ee424..d22b5d52c 100644 --- a/src/bin/lttng-sessiond/snapshot.c +++ b/src/bin/lttng-sessiond/snapshot.c @@ -47,6 +47,8 @@ static int output_init(uint64_t max_size, const char *name, assert(output); + memset(output, 0, sizeof(struct snapshot_output)); + if (max_size == (uint64_t) -1ULL) { max_size = 0; }