Fix wrong goto
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 16 May 2011 16:21:01 +0000 (12:21 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 16 May 2011 16:21:01 +0000 (12:21 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/trace.c

index 92f8d48ce141960902cba89e1b939de2fab48b5b..a821327e253242ef780b4d8c06614687169cfdbf 100644 (file)
@@ -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, &current_session->ust_traces);
                current_session->ust_trace_count++;
        }
+
        return 0;
 
 error_create:
This page took 0.026601 seconds and 4 git commands to generate.