From a33c2651cf40c30d86a0b93eec7088cc0e74dd05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 14 Feb 2016 17:54:24 -0500 Subject: [PATCH] Fix: missing return code initialization on error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index b2608a186..a4b1510f5 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -747,6 +747,7 @@ int agent_enable_context(struct lttng_event_context *ctx, agent_ctx = create_app_ctx(ctx); if (!agent_ctx) { + ret = LTTNG_ERR_NOMEM; goto error_unlock; } -- 2.34.1