summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/util/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/util/module.c b/source4/lib/util/module.c
index ef72551570..dc8b353547 100644
--- a/source4/lib/util/module.c
+++ b/source4/lib/util/module.c
@@ -100,12 +100,12 @@ _PUBLIC_ init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
_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;
}