Add jul.c/.h to sessiond code
[lttng-tools.git] / src / bin / lttng-sessiond / snapshot.c
index 4c23ee424292176032da37d2a57fa9cd21e3ec5e..6b1aa8db1085c5edf2c01e404e3ce9387561c17d 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;
        }
@@ -78,6 +80,7 @@ static int output_init(uint64_t max_size, const char *name,
                ret = -ENOMEM;
                goto error;
        }
+       output->consumer->snapshot = 1;
 
        /* No URL given. */
        if (nb_uri == 0) {
This page took 0.022997 seconds and 4 git commands to generate.