]> err.no Git - yubikey-personalization/commitdiff
make sure the ndef_string is initialized to 0
authorKlas Lindfors <klas@yubico.com>
Tue, 15 May 2012 08:13:56 +0000 (10:13 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 15 May 2012 08:13:56 +0000 (10:13 +0200)
ykpersonalize.c

index 910fb4319786af45f7c025136fb80bb939a90f28..e8a393ae94620ba05637ede2d69094adecfbbfb4 100644 (file)
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
 
        /* Options */
        char *salt = NULL;
-       char ndef_string[128];
+       char ndef_string[128] = {0};
        char ndef_type;
 
        bool error = false;