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.10.0~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46e1a24c479af78bf198cb15151be0e9c3ae902a;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 fb1f11521..3256c2cb7 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -403,6 +403,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);