]> granicus.if.org Git - p11-kit/commitdiff
tools: Initialize local debug code correctly
authorStef Walter <stefw@gnome.org>
Mon, 11 Mar 2013 08:38:49 +0000 (09:38 +0100)
committerStef Walter <stefw@gnome.org>
Mon, 11 Mar 2013 08:38:49 +0000 (09:38 +0100)
Unless initialized according to the environment all debug output
is printed.

https://bugs.freedesktop.org/show_bug.cgi?id=62152

tools/tool.c

index 269fc0669f1f6b7beb9f1af7200078a097ec827d..e9c10a09e586779b9d7ab0679d843442684bcfba 100644 (file)
@@ -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)