summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-12-03 17:00:10 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:31 +0100
commit133ee7014caecbe2236fa5bf2292a5f8c71e58ef (patch)
tree88d7aecc5ea962fbae72a89f5a2b022664f7e85f
parentef792cc8a54d99d8c32251fbae9e2178f5838576 (diff)
downloadsamba-133ee7014caecbe2236fa5bf2292a5f8c71e58ef.tar.gz
samba-133ee7014caecbe2236fa5bf2292a5f8c71e58ef.tar.bz2
samba-133ee7014caecbe2236fa5bf2292a5f8c71e58ef.zip
r26257: Get rid of "uninitialized value" warning in the samba3 pidl generator.
Jelmer, please check. Guenther (This used to be commit 2f693292882f2929ff5d23e4009dabbb0443f891)
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
index d77a166445..e174f77542 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
@@ -47,7 +47,7 @@ sub ParseFunction($$$)
$defargs .= ", " . DeclLong($_);
}
- if ($fn->{RETURN_TYPE} eq "WERROR") {
+ if (defined($fn->{RETURN_TYPE}) && ($fn->{RETURN_TYPE} eq "WERROR")) {
$defargs .= ", WERROR *werror";
}