Init pointer to NULL in case of free()
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 29 Nov 2011 18:55:08 +0000 (13:55 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 29 Nov 2011 18:55:08 +0000 (13:55 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/main.c

index 0a78f27bad9e9e6f85ad9e86008030464b924a39..996349f3fa12b2329f85f47b0fbc9d406764b543 100644 (file)
@@ -1575,7 +1575,7 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data)
                }
                case LTTNG_CONSUMER32_UST:
                {
-                       char *tmpnew;
+                       char *tmpnew = NULL;
 
                        if (consumerd32_libdir[0] != '\0') {
                                char *tmp;
This page took 0.027763 seconds and 4 git commands to generate.