]> err.no Git - yubikey-personalization/commitdiff
the structs where expanded previously, initialize the last for all fields
authorKlas Lindfors <klas@yubico.com>
Thu, 25 Oct 2012 16:54:13 +0000 (18:54 +0200)
committerKlas Lindfors <klas@yubico.com>
Thu, 25 Oct 2012 16:57:20 +0000 (18:57 +0200)
ykpers.c

index 5d2a4e7aac5ef627de62454bf8a64d0bf9db7cda..655a5bd2d1d7ec897ebd80abf5bbd9a745de3a39 100644 (file)
--- a/ykpers.c
+++ b/ykpers.c
@@ -759,7 +759,7 @@ struct map_st ticket_flags_map[] = {
        { TKTFLAG_PROTECT_CFG2,         "PROTECT_CFG2",         capability_has_slot_two,        0 },
        { TKTFLAG_OATH_HOTP,            "OATH_HOTP",            capability_has_oath,            0 },
        { TKTFLAG_CHAL_RESP,            "CHAL_RESP",            capability_has_chal_resp,       0 },
-       { 0, "", 0 }
+       { 0, "", 0, 0 }
 };
 
 const char str_config_flags[] = "config_flags";
@@ -793,7 +793,7 @@ struct map_st config_flags_map[] = {
        { CFGFLAG_STRONG_PW1,           "STRONG_PW1",           capability_has_static_extras,   0 },
        { CFGFLAG_STRONG_PW2,           "STRONG_PW2",           capability_has_static_extras,   0 },
        { CFGFLAG_MAN_UPDATE,           "MAN_UPDATE",           capability_has_static_extras,   0 },
-       { 0, "" }
+       { 0, "", 0, 0 }
 };
 
 const char str_extended_flags[] = "extended_flags";
@@ -805,7 +805,7 @@ struct map_st extended_flags_map[] = {
        { EXTFLAG_FAST_TRIG,            "FAST_TRIG",            capability_has_fast,            0 },
        { EXTFLAG_ALLOW_UPDATE,         "ALLOW_UPDATE",         capability_has_update,          0 },
        { EXTFLAG_DORMANT,              "DORMANT",              capability_has_dormant,         0 },
-       { 0, "", 0 }
+       { 0, "", 0, 0 }
 };
 
 int ykp_write_config(const YKP_CONFIG *cfg,