]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pidl: Wireshark: Don't initialise static hf and ett variables.
authorJohn Thacker <johnthacker@gmail.com>
Wed, 3 Jul 2024 11:50:55 +0000 (07:50 -0400)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jul 2024 09:59:32 +0000 (09:59 +0000)
Pick up change from Wireshark:

    commit 9ca6eff53db29cad7dfc7e57fba4d68e9c838ab5
    Author: Anders Broman <a.broman58@gmail.com>
    Date:   Thu May 2 14:14:29 2024 +0200

        PIDL: Don't initialise static hf and ett variables.

Signed-off-by: John Thacker <johnthacker@gmail.com>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 64e1fd8bd96dde9628fdaf6d556d2b132bd4de6e..48c090497fe89c9a3d14c101f1ada81330734b2a 100644 (file)
@@ -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";