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.8.8~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=aa41a0f46986484899b384318e9b109d9fbd845e;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 c97013f43..a23bc0d54 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -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);