projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: check return value of config_document_replace_element
[deliverable/lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
create.c
diff --git
a/src/bin/lttng/commands/create.c
b/src/bin/lttng/commands/create.c
index fe9488b96a56d754cffc297286163d9267cdc935..5fdcbe3d2b26302b5d25d1a2d3fed865354e6f3a 100644
(file)
--- a/
src/bin/lttng/commands/create.c
+++ b/
src/bin/lttng/commands/create.c
@@
-773,6
+773,12
@@
static int create_session_from_template(struct config_document *template,
}
+ if (ret) {
+ ERR("%s", lttng_strerror(ret));
+ ret = CMD_ERROR;
+ goto error;
+ }
+
/* Shm path */
if (shm_path && config_document_element_exist(template, "/sessions/session/shared_memory_path")) {
This page took
0.026737 seconds
and
5
git commands to generate.