r26443: Remove global_loadparm instances.
[bbaumbach/samba-autobuild/.git] / source4 / lib / registry / tools / regtree.c
index b267e11b43d3dc3f78324583be855f72b49f65ce..0f47d8f8ddb0969eec1592646fdcfd2b581ec6b4 100644 (file)
@@ -131,7 +131,7 @@ int main(int argc, char **argv)
        if (remote != NULL) {
                h = reg_common_open_remote(remote, cmdline_lp_ctx, cmdline_credentials);
        } else if (file != NULL) {
-               start_key = reg_common_open_file(file, cmdline_credentials);
+               start_key = reg_common_open_file(file, cmdline_lp_ctx, cmdline_credentials);
        } else {
                h = reg_common_open_local(cmdline_credentials, cmdline_lp_ctx);
        }