]> err.no Git - yubikey-personalization/commitdiff
make sure that keylocation is initialized in the tests
authorKlas Lindfors <klas@yubico.com>
Mon, 3 Mar 2014 10:46:56 +0000 (11:46 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 3 Mar 2014 10:46:56 +0000 (11:46 +0100)
tests/test_args_to_config.c

index 4dd9228d79c3fcb715f54126d7579cbcbfb4106e..5581a9f0908a048a14283256e20ac8f7a3153bde 100644 (file)
@@ -106,7 +106,7 @@ static int _test_config (YKP_CONFIG *cfg, YK_STATUS *st, int argc, const char **
        const char *outfname = NULL;
        bool verbose = false;
        bool dry_run = false;
-       char keylocation;
+       char keylocation = 0;
        bool use_access_code = false;
        unsigned char access_code[256];
        YK_KEY *yk = 0;
@@ -295,7 +295,7 @@ static void _test_non_config_args(void)
        const char *outfname = NULL;
        bool verbose = false;
        bool dry_run = false;
-       char keylocation;
+       char keylocation = 0;
        bool use_access_code = false;
        unsigned char access_code[256];
        YK_KEY *yk = 0;