Fix "allocator sizeof operand mismatch" warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Aug 2015 20:17:02 +0000 (16:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Aug 2015 21:55:31 +0000 (17:55 -0400)
Addresses benign scan-build waring:
Result of 'realloc' is converted to a pointer of type 'char *',
which is incompatible with sizeof operand type 'char **'

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/enable_events.c

index f1d04581fd9f5eb05532f6667c84eddd9e6d1faa..356fef4a0732c394b188f363c24ea0a8f990bd2f 100644 (file)
@@ -632,7 +632,7 @@ int check_exclusion_subsets(const char *event_name,
                                        goto error;
                                }
                                new_exclusion_list = realloc(exclusion_list,
-                                       sizeof(char **) * (exclusion_count + 1));
+                                       sizeof(char *) * (exclusion_count + 1));
                                if (!new_exclusion_list) {
                                        PERROR("realloc");
                                        free(string);
This page took 0.025729 seconds and 4 git commands to generate.