Author: tridge
Date: 2006-03-13 06:58:32 +0000 (Mon, 13 Mar 2006)
New Revision: 14309

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

Log:

make sure ret is initialised





Modified:
   branches/SAMBA_4_0/source/lib/util/module.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/module.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/module.c 2006-03-13 06:58:09 UTC (rev 
14308)
+++ branches/SAMBA_4_0/source/lib/util/module.c 2006-03-13 06:58:32 UTC (rev 
14309)
@@ -100,12 +100,12 @@
 _PUBLIC_ BOOL run_init_functions(NTSTATUS (**fns) (void))
 {
        int i;
-       BOOL ret;
+       BOOL ret = True;
        
        if (fns == NULL)
                return True;
        
-       for (i = 0; fns[i]; i++) { ret &= NT_STATUS_IS_OK(fns[i]()); }
+       for (i = 0; fns[i]; i++) { ret &= (BOOL)NT_STATUS_IS_OK(fns[i]()); }
 
        return ret;
 }

Reply via email to