Fix: zeroed snapshot output at init
authorDavid Goulet <dgoulet@efficios.com>
Fri, 12 Jul 2013 14:16:26 +0000 (10:16 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 12 Jul 2013 15:18:28 +0000 (11:18 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/snapshot.c

index 4c23ee424292176032da37d2a57fa9cd21e3ec5e..d22b5d52c98b730d122d91605c0f6851ef578c61 100644 (file)
@@ -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;
        }
This page took 0.025689 seconds and 4 git commands to generate.