X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.c;h=6b1aa8db1085c5edf2c01e404e3ce9387561c17d;hb=8db0dc005c98126fb0e6ede59a695e399ad31e01;hp=4c23ee424292176032da37d2a57fa9cd21e3ec5e;hpb=eb240553d4d24fd770d47a8e66ac3ac3bd5fe602;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/snapshot.c b/src/bin/lttng-sessiond/snapshot.c index 4c23ee424..6b1aa8db1 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; } @@ -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) {