git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pidl/python: Fix bug accidently filling in the body of enums/bitmaps without body.
[samba.git]
/
source4
/
pidl
/
lib
/
Parse
/
Pidl
/
Samba4
/
Python.pm
diff --git
a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
index ae4931571a468493c86625c130dc04726f4e4ac6..d0a5bbd7e3f18d551b1c64b89d138ae4bc81ada7 100644
(file)
--- a/
source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/
source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@
-79,6
+79,8
@@
sub EnumAndBitmapConsts($$$)
{
my ($self, $name, $d) = @_;
+ return unless (defined($d->{ELEMENTS}));
+
foreach my $e (@{$d->{ELEMENTS}}) {
$e =~ /^([A-Za-z0-9_]+)=(.*)$/;
my $cname = $1;