r833: Compile error
authorJelmer Vernooij <jelmer@samba.org>
Sun, 23 May 2004 13:55:52 +0000 (13:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:54 +0000 (12:53 -0500)
source/lib/registry/common/reg_interface.c

index 93e5b6098418342a8d63fa97e4db20f0fed663bc..6acedb3591c155ad3434763f83d6ef4ab5a7b747 100644 (file)
@@ -60,11 +60,12 @@ static struct reg_init_function_entry *reg_find_backend_entry(const char *name)
 {
        struct reg_init_function_entry *entry;
        static BOOL reg_first_init = True;
+       NTSTATUS status;
 
        if(reg_first_init) {
                status = register_subsystem("registry", registry_register);
                if (!NT_STATUS_IS_OK(status)) 
-                       return WERR_GENERAL_FAILURE;
+                       return NULL;
 
                static_init_registry;
                reg_first_init = False;