From 1940b29e34a4e77db05fbee32fbcc1118e6e8215 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 7 Aug 2015 16:17:02 -0400 Subject: [PATCH 1/1] Fix "allocator sizeof operand mismatch" warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng/commands/enable_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index f1d04581f..356fef4a0 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -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); -- 2.34.1