]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/crypto1.c
FIX: Coverity Scans complain about uninitialized usage of struct. Setting s->ODD...
[proxmark3-svn] / armsrc / crypto1.c
index b218af19e0d14ce88afdee5af571ceddd96345dd..a212ecc4cc79ce45de6da4337b4ecf6ec04f9f32 100644 (file)
@@ -24,6 +24,7 @@
 void crypto1_create(struct Crypto1State *s, uint64_t key)
 {
 //     struct Crypto1State *s = malloc(sizeof(*s));
 void crypto1_create(struct Crypto1State *s, uint64_t key)
 {
 //     struct Crypto1State *s = malloc(sizeof(*s));
+       s->odd = s->even = 0;
        int i;
 
        for(i = 47;s && i > 0; i -= 2) {
        int i;
 
        for(i = 47;s && i > 0; i -= 2) {
Impressum, Datenschutz