]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
chg: another way of checking a array for NULL
authoriceman1001 <iceman@iuse.se>
Tue, 2 Aug 2016 14:04:57 +0000 (16:04 +0200)
committericeman1001 <iceman@iuse.se>
Tue, 2 Aug 2016 14:04:57 +0000 (16:04 +0200)
client/cmdhflegic.c

index ccdfa1da2675d1f73017cf4b0f332229741bea4f..da1b20b1cd422b46f7a8a3c3a7910c5d1d3a9ffd 100644 (file)
@@ -612,7 +612,7 @@ int CmdLegicCalcCrc8(const char *Cmd){
        }
        //Validations
        if (errors){
-               if (data != NULL) free(data);
+               if (data) free(data);
                return usage_legic_calccrc8();
        }
        
@@ -625,7 +625,7 @@ int CmdLegicCalcCrc8(const char *Cmd){
                        break;
        }
        
-       if (data != NULL) free(data);
+       if (data) free(data);
        return 0;
 } 
  
Impressum, Datenschutz