Fix: missing return code initialization on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 14 Feb 2016 22:54:24 +0000 (17:54 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 14 Feb 2016 22:54:24 +0000 (17:54 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent.c

index b2608a186f83095b9faf20fd58a222eb4f2b0283..a4b1510f5dfe387ba567430f0037840589017529 100644 (file)
@@ -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;
                }
 
This page took 0.025438 seconds and 4 git commands to generate.