From 133ee7014caecbe2236fa5bf2292a5f8c71e58ef Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 3 Dec 2007 17:00:10 +0100 Subject: r26257: Get rid of "uninitialized value" warning in the samba3 pidl generator. Jelmer, please check. Guenther (This used to be commit 2f693292882f2929ff5d23e4009dabbb0443f891) --- source4/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit