From: Klas Lindfors Date: Mon, 3 Mar 2014 10:46:56 +0000 (+0100) Subject: make sure that keylocation is initialized in the tests X-Git-Tag: v1.15.1~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c91cf90968ed5472a5ae44719f9b972a5631281d;p=yubikey-personalization make sure that keylocation is initialized in the tests --- diff --git a/tests/test_args_to_config.c b/tests/test_args_to_config.c index 4dd9228..5581a9f 100644 --- a/tests/test_args_to_config.c +++ b/tests/test_args_to_config.c @@ -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;