chg: another way of checking a array for NULL
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user