Fix: mi: snapshot: missing error handling for session name
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 6 Jan 2015 15:59:47 +0000 (10:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Jan 2015 19:49:59 +0000 (14:49 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/mi-lttng.c

index c21ed5a6311491cd875d246c6d4244fb8dda26f9..bb1a66c94b9004ce5108141b7580ee7ef4a74ba8 100644 (file)
@@ -1314,6 +1314,9 @@ int mi_lttng_snapshot_output_session_name(struct mi_writer *writer,
        /* Snapshot output list for current session name */
        ret = mi_lttng_writer_write_element_string(writer, config_element_name,
                        session_name);
+       if (ret) {
+               goto end;
+       }
 
        /* Open element snapshots (sequence one snapshot) */
        ret = mi_lttng_writer_open_element(writer, mi_lttng_element_snapshots);
This page took 0.026232 seconds and 4 git commands to generate.