mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
chg: another way of checking a array for NULL
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user