]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdcrc.c
FIX: coverty scan reveals some resourceleaks and overruns, which is supposed to...
[proxmark3-svn] / client / cmdcrc.c
index 7fc8bd6ea8bd68a87055710f8c3bad12c46e291f..666b4a8e67d42c2de61377ea978be72b4d8076b3 100644 (file)
@@ -271,7 +271,6 @@ int RunModel(char *inModel, char *inHexStr, bool reverse, char endian, char *res
        int ibperhx = 8, obperhx = 8;
        int rflags = 0; // search flags 
        int c;
-       unsigned long width = 0UL;
        poly_t apoly, crc;
 
        char *string;
@@ -290,8 +289,6 @@ int RunModel(char *inModel, char *inHexStr, bool reverse, char endian, char *res
        if(c < 0)
                return uerr("no preset models available");
 
-       // must set width so that parameter to -ipx is not zeroed 
-       width = plen(model.spoly);
        rflags |= R_HAVEP | R_HAVEI | R_HAVERI | R_HAVERO | R_HAVEX;
        
        //set flags
Impressum, Datenschutz