]> git.lttng.org Git - lttng-tools.git/commitdiff
Fix: missing error handling in use of print_tabs()
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 25 Jul 2017 21:20:45 +0000 (17:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Aug 2017 21:15:31 +0000 (17:15 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/ust-metadata.c

index c97013f438a88df9b9d7ccf1205761731261860b..a23bc0d54e6bff96cfa220f785319e7a803fc2a3 100644 (file)
@@ -389,6 +389,9 @@ int _lttng_variant_statedump(struct ust_registry_session *session,
        }
        sanitize_ctf_identifier(identifier, variant->name);
        ret = print_tabs(session, nesting);
+       if (ret) {
+               goto end;
+       }
        ret = lttng_metadata_printf(session,
                        "} _%s;\n",
                        identifier);
This page took 0.030993 seconds and 4 git commands to generate.