From: Peter Harris Date: Sat, 17 Oct 2015 00:43:51 +0000 (-0400) Subject: x11 generator: Fix struct size with array X-Git-Url: http://git.samba.org/?p=metze%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=0f2eb385f0b920cb4117189b9d13e88ae22787eb 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 --- 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);