From 0f2eb385f0b920cb4117189b9d13e88ae22787eb Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Fri, 16 Oct 2015 20:43:51 -0400 Subject: [PATCH] x11 generator: Fix struct size with array my $count here shadows my $count in the outer scope, preventing the size of constant sized arrays from being calculated correctly. Change-Id: I89c989ee2d288d4828871ebab650807fbde747dd Reviewed-on: https://code.wireshark.org/review/11106 Reviewed-by: Jeff Morriss --- tools/process-x11-xcb.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/process-x11-xcb.pl b/tools/process-x11-xcb.pl index c4e8c06fb7..07c8e4bd2b 100755 --- a/tools/process-x11-xcb.pl +++ b/tools/process-x11-xcb.pl @@ -971,7 +971,6 @@ sub struct { when ('list') { my $type = $e->att('type'); my $info = getinfo($type); - my $count; $needi = 1 if ($info->{'size'} == 0);