Author: gd
Date: 2007-12-03 17:00:10 +0000 (Mon, 03 Dec 2007)
New Revision: 26257

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26257

Log:
Get rid of "uninitialized value" warning in the samba3 pidl generator.
Jelmer, please check.

Guenther

Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm   
2007-12-03 16:49:45 UTC (rev 26256)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm   
2007-12-03 17:00:10 UTC (rev 26257)
@@ -47,7 +47,7 @@
                $defargs .= ", " . DeclLong($_);
        }
 
-       if ($fn->{RETURN_TYPE} eq "WERROR") {
+       if (defined($fn->{RETURN_TYPE}) && ($fn->{RETURN_TYPE} eq "WERROR")) {
                $defargs .= ", WERROR *werror";
        }
 

Reply via email to