summaryrefslogtreecommitdiff
path: root/source4/build/pidl/util.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-13 23:33:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:51 -0500
commitbcd6d19c5050f99bb162891fc136bf988d4d0560 (patch)
treecc732aa45077820ff42eaa885d817f9b607a916d /source4/build/pidl/util.pm
parent24c0fbc0e88bf0f7bc34f75c99aa276ca19b0163 (diff)
downloadsamba-bcd6d19c5050f99bb162891fc136bf988d4d0560.tar.gz
samba-bcd6d19c5050f99bb162891fc136bf988d4d0560.tar.bz2
samba-bcd6d19c5050f99bb162891fc136bf988d4d0560.zip
r2958: the warnings from the swig code in pidl were totally swamping valid
warnings, making real errors impossible to spot. this fixes the warnings, and probably fixes some pidl/python bugs as well. (This used to be commit 2f1e9954e3381b1864a6fd9fa8b2231478179d4d)
Diffstat (limited to 'source4/build/pidl/util.pm')
-rw-r--r--source4/build/pidl/util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index 1341d77ccc..e3f3b0d40d 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -360,7 +360,7 @@ sub has_direct_buffers($)
sub is_constant($)
{
my $s = shift;
- if ($s =~ /^\d/) {
+ if (defined $s && $s =~ /^\d/) {
return 1;
}
return 0;