From: John Thacker Date: Wed, 3 Jul 2024 11:50:55 +0000 (-0400) Subject: pidl: Wireshark: Don't initialise static hf and ett variables. X-Git-Tag: tdb-1.4.11~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a5e68c274739c9f05833b881e6dc21fc3829f74;p=thirdparty%2Fsamba.git pidl: Wireshark: Don't initialise static hf and ett variables. Pick up change from Wireshark: commit 9ca6eff53db29cad7dfc7e57fba4d68e9c838ab5 Author: Anders Broman Date: Thu May 2 14:14:29 2024 +0200 PIDL: Don't initialise static hf and ett variables. Signed-off-by: John Thacker Reviewed-by: Jo Sutton Reviewed-by: Stefan Metzmacher --- diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index 64e1fd8bd96..48c090497fe 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -1231,7 +1231,7 @@ sub DumpEttDeclaration my ($ett) = @_; my $res = "\n/* Ett declarations */\n"; foreach (@$ett) { - $res .= "static gint $_ = -1;\n"; + $res .= "static gint $_;\n"; } return "$res\n"; @@ -1297,7 +1297,7 @@ sub DumpHfDeclaration($) foreach (sort(keys %{$self->{conformance}->{header_fields}})) { - $res .= "static gint $_ = -1;\n"; + $res .= "static gint $_;\n"; } return "$res\n";