summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index 15dcf7e1..2fb75ad6 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -521,6 +521,9 @@ errno_t init_context(int argc, const char *argv[], struct cache_tool_ctx **tctx)
}
}
+ DEBUG_INIT(debug);
+ debug_prg_name = argv[0];
+
if (ret != -1) {
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
@@ -532,8 +535,6 @@ errno_t init_context(int argc, const char *argv[], struct cache_tool_ctx **tctx)
ret, fini);
}
- DEBUG_INIT(debug);
- debug_prg_name = argv[0];
CHECK_ROOT(ret, debug_prg_name);
ctx = talloc_zero(NULL, struct cache_tool_ctx);