summaryrefslogtreecommitdiff
path: root/source3/registry/reg_init_full.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_init_full.c')
-rw-r--r--source3/registry/reg_init_full.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_init_full.c b/source3/registry/reg_init_full.c
index ad245cb52e..f171949e38 100644
--- a/source3/registry/reg_init_full.c
+++ b/source3/registry/reg_init_full.c
@@ -86,7 +86,7 @@ bool init_registry( void )
reghook_cache_init();
for ( i=0; reg_hooks[i].keyname; i++ ) {
- if ( !reghook_cache_add(&reg_hooks[i]) )
+ if (!reghook_cache_add(reg_hooks[i].keyname, reg_hooks[i].ops))
goto fail;
}