From: Jérémie Galarneau Date: Fri, 7 Aug 2015 20:17:02 +0000 (-0400) Subject: Fix "allocator sizeof operand mismatch" warning X-Git-Tag: v2.6.1~78 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=f7c909f7b8813fb4287fb4a023fa4ea74bf4fe32;p=lttng-tools.git Fix "allocator sizeof operand mismatch" warning 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 --- diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index dbba41a17..1ea365987 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -586,7 +586,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);