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.11.0-rc1~480 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=850c5d4a21313fb9c2c79085606b06086115b53c;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);