projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: initialize live_timer to 0 for snapshot session
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
cmd.c
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index 2ca22c2e9bb9af0bfc6f310433f410a55d9eacd6..fdc72b834158c1de4082d657affff40e93979e08 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-1812,6
+1812,7
@@
static int _cmd_enable_event(struct ltt_session *session,
filter_copy = zmalloc(filter_size);
if (!filter_copy) {
ret = LTTNG_ERR_NOMEM;
filter_copy = zmalloc(filter_size);
if (!filter_copy) {
ret = LTTNG_ERR_NOMEM;
+ goto error;
}
memcpy(filter_copy, filter, filter_size);
}
memcpy(filter_copy, filter, filter_size);
@@
-2344,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.
*/
* 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;
}
if (ret != LTTNG_OK) {
goto error;
}
This page took
0.027882 seconds
and
4
git commands to generate.