From c80956aef3abaa90fa9ab7c2873a45adbe127dc4 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 11 Mar 2013 09:38:49 +0100 Subject: 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 --- tools/tool.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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) -- cgit v1.1