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.8.0-rc1~379 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ae58b817f6c592f283397dbb243f56ce4d333c19;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 6237d673e..020a8756a 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2358,7 +2358,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; }