From: David Goulet Date: Mon, 16 May 2011 16:21:01 +0000 (-0400) Subject: Fix wrong goto X-Git-Tag: v2.0-pre1~140 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a55dd1367a35379b1208ddaf3212acb48e78004e;p=lttng-tools.git Fix wrong goto Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/trace.c b/ltt-sessiond/trace.c index 92f8d48ce..a821327e2 100644 --- a/ltt-sessiond/trace.c +++ b/ltt-sessiond/trace.c @@ -137,7 +137,7 @@ int ust_create_trace(int sock, pid_t pid) ret = ustctl_create_trace(sock, trace->name); if (ret < 0) { ret = LTTCOMM_CREATE_FAIL; - goto error; + goto error_create; } /* Check if current session is valid */ @@ -145,6 +145,7 @@ int ust_create_trace(int sock, pid_t pid) cds_list_add(&trace->list, ¤t_session->ust_traces); current_session->ust_trace_count++; } + return 0; error_create: