]> granicus.if.org Git - p11-kit/commitdiff
p11-kit: Fix bad check of asprintf() return value
authorStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 15:18:56 +0000 (17:18 +0200)
committerStef Walter <stef@thewalter.net>
Fri, 8 Aug 2014 16:44:20 +0000 (18:44 +0200)
p11-kit/p11-kit.c

index e115c42cbc5fa2d8706e6fb088307c700d16115f..f447b4cefede271c76487760fd0074a2d1e8cbcf 100644 (file)
@@ -108,7 +108,7 @@ p11_kit_external (int argc,
                return p11_kit_trust (argc, argv);
        }
 
-       if (!asprintf (&filename, "p11-kit-%s", argv[0]) < 0)
+       if (asprintf (&filename, "p11-kit-%s", argv[0]) < 0)
                return_val_if_reached (1);
 
        /* Add our libexec directory to the path */