summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-13 06:58:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:10 -0500
commit3b12f543be2d5d351f44fc55f1e9cffe73f1a10e (patch)
treec0a9905016dbb9b5149f96b2faa18fd622efac82 /source4/lib
parent5afe03d9758dedc2d11208b7ed350c3128f9ad2d (diff)
downloadsamba-3b12f543be2d5d351f44fc55f1e9cffe73f1a10e.tar.gz
samba-3b12f543be2d5d351f44fc55f1e9cffe73f1a10e.tar.bz2
samba-3b12f543be2d5d351f44fc55f1e9cffe73f1a10e.zip
r14309: make sure ret is initialised
(This used to be commit 1f48df6dda390ef09ae0d8efc3332e5001b75952)
Diffstat (limited to 'source4/lib')
-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;
}