From: Jonathan Rajotte Date: Tue, 25 Jul 2017 21:20:45 +0000 (-0400) Subject: Fix: missing error handling in use of print_tabs() X-Git-Tag: v2.9.6~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ef5a8bcfa7397db6e2b539f13e78addb2e7133ce;p=lttng-tools.git Fix: missing error handling in use of print_tabs() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-metadata.c b/src/bin/lttng-sessiond/ust-metadata.c index c1a80c746..ba3d63f53 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -404,6 +404,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);