From f7c909f7b8813fb4287fb4a023fa4ea74bf4fe32 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] 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 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); -- 2.34.1