chg: another way of checking a array for NULL

This commit is contained in:
iceman1001 2016-08-02 16:04:57 +02:00
commit aeb128e2bb

View file

@ -612,7 +612,7 @@ int CmdLegicCalcCrc8(const char *Cmd){
} }
//Validations //Validations
if (errors){ if (errors){
if (data != NULL) free(data); if (data) free(data);
return usage_legic_calccrc8(); return usage_legic_calccrc8();
} }
@ -625,7 +625,7 @@ int CmdLegicCalcCrc8(const char *Cmd){
break; break;
} }
if (data != NULL) free(data); if (data) free(data);
return 0; return 0;
} }