summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
diff options
context:
space:
mode:
Diffstat (limited to 'pidl/lib/Parse/Pidl/Wireshark/NDR.pm')
-rw-r--r--pidl/lib/Parse/Pidl/Wireshark/NDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 40c59c9a517..632f0942dd2 100644
--- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -661,7 +661,7 @@ sub Struct($$$$)
}
my $switch_type = "g${switch_raw_type}";
- push @$vars, "$switch_type $v;";
+ push @$vars, "$switch_type $v = 0;";
$switch_info = [ $_->{TYPE}, $v ];
$varswitchs->{$v} = $switch_info;
}