diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-06-13 09:57:33 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-06-26 08:47:14 +0200 |
commit | 823bc4c07add242a5a1d0cd25942ebaab3cd0e23 (patch) | |
tree | deb22ca95f599ccc3d2c93807ccab7fd750b71de /pidl | |
parent | 5a08c9887cb3e9354ed697c649d5f9965436fe50 (diff) | |
download | samba-823bc4c07add242a5a1d0cd25942ebaab3cd0e23.tar.gz |
pidl:NDR/Parser: initialize [skip] values in ndr_pull_*
It's too dangerous to leave values uninitialzed!
[skip_noinit] can be used if required.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index a32e9eb4a0d..7a731267014 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -1128,6 +1128,9 @@ sub ParseElementPullLevel if (has_property($e, "skip") or has_property($e, "skip_noinit")) { $self->pidl("/* [skip] '$var_name' */"); + if (not has_property($e, "skip_noinit")) { + $self->pidl("ZERO_STRUCT($var_name);"); + } return; } |