summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-13 15:11:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-14 19:53:04 +0100
commit4a8ceb8c56c66059791e4ef74ef3cbef4259f961 (patch)
tree4d25b6f73168c1804512abf6e2a69740b3fb5e45 /source4/pidl/lib/Parse/Pidl
parentd814f3ce1c58be53886deab31a815e444ca6c5d5 (diff)
downloadsamba-4a8ceb8c56c66059791e4ef74ef3cbef4259f961.tar.gz
samba-4a8ceb8c56c66059791e4ef74ef3cbef4259f961.tar.bz2
samba-4a8ceb8c56c66059791e4ef74ef3cbef4259f961.zip
pidl/python: Fix bug accidently filling in the body of enums/bitmaps without body.
(This used to be commit 97971f0d8080f3934ea5940cc0f230004afb94a1)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/Python.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm
index ae4931571a..d0a5bbd7e3 100644
--- 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;