summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-11 09:38:49 +0100
committerStef Walter <stefw@gnome.org>2013-03-11 09:38:49 +0100
commitc80956aef3abaa90fa9ab7c2873a45adbe127dc4 (patch)
tree8bbcea58dfc00cb3c472b20a060e3e467d9392e7
parentee632a4a904f9f16c66a24c97f5724f0c3150b10 (diff)
downloadp11-kit-c80956aef3abaa90fa9ab7c2873a45adbe127dc4.tar.gz
tools: Initialize local debug code correctly
Unless initialized according to the environment all debug output is printed. https://bugs.freedesktop.org/show_bug.cgi?id=62152
-rw-r--r--tools/tool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/tool.c b/tools/tool.c
index 269fc06..e9c10a0 100644
--- a/tools/tool.c
+++ b/tools/tool.c
@@ -315,6 +315,9 @@ main (int argc, char *argv[])
argv[out] = argv[in];
}
+ /* Initialize tool's debugging after setting env vars above */
+ p11_debug_init ();
+
if (command == NULL) {
/* As a special favor if someone just typed 'p11-kit', help them out */
if (argc == 1)