mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
chg: another way of checking a array for NULL
This commit is contained in:
parent
bf2cd64406
commit
aeb128e2bb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue