Fix: missing return code initialization on error
[lttng-tools.git] / 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.024205 seconds and 4 git commands to generate.