From: Antoine Busque Date: Tue, 1 Sep 2015 23:12:28 +0000 (-0400) Subject: Fix: initialize live_timer to 0 for snapshot session X-Git-Tag: v2.7.0-rc2~56 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bfaba83f452c53682bcdc1075e760988b9549b67;p=lttng-tools.git Fix: initialize live_timer to 0 for snapshot session The live timer was being initialized to -1 for snapshot sessions, instead of the expected default value of 0 used elsewhere in the code. Fixes #879 Signed-off-by: Antoine Busque Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 4cc590a95..fdc72b834 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2345,7 +2345,7 @@ int cmd_create_session_snapshot(char *name, struct lttng_uri *uris, * Create session in no output mode with URIs set to NULL. The uris we've * received are for a default snapshot output if one. */ - ret = cmd_create_session_uri(name, NULL, 0, creds, -1); + ret = cmd_create_session_uri(name, NULL, 0, creds, 0); if (ret != LTTNG_OK) { goto error; }