diff options
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_init_smbconf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/registry/reg_init_smbconf.c b/source3/registry/reg_init_smbconf.c index a05da854cf..43a5be025d 100644 --- a/source3/registry/reg_init_smbconf.c +++ b/source3/registry/reg_init_smbconf.c @@ -67,10 +67,9 @@ done: * for use in places where not the whole registry is needed, * e.g. utils/net_conf.c and loadparm.c */ -bool registry_init_smbconf(const char *keyname) +WERROR registry_init_smbconf(const char *keyname) { WERROR werr; - bool ret = false; DEBUG(10, ("registry_init_smbconf called\n")); @@ -99,9 +98,7 @@ bool registry_init_smbconf(const char *keyname) goto done; } - ret = true; - done: regdb_close(); - return ret; + return werr; } |