From: Jérémie Galarneau Date: Sun, 14 Feb 2016 22:54:24 +0000 (-0500) Subject: Fix: missing return code initialization on error X-Git-Tag: v2.8.0-rc1~164 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=a33c2651cf40c30d86a0b93eec7088cc0e74dd05 Fix: missing return code initialization on error Signed-off-by: Jérémie Galarneau --- 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; }