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.6.1~19 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=ab014ba21b383498b92ceb622952ec3022ce7432;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 217d45a25..766a138cb 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2183,7 +2183,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; }