mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
chg: use calloc
This commit is contained in:
parent
ed7122e409
commit
e81b0fa355
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ static void topaz_print_control_TLVs(uint8_t *memory) {
|
||||||
dynamic_lock_area_t *old = topaz_tag.dynamic_lock_areas;
|
dynamic_lock_area_t *old = topaz_tag.dynamic_lock_areas;
|
||||||
dynamic_lock_area_t *new = topaz_tag.dynamic_lock_areas;
|
dynamic_lock_area_t *new = topaz_tag.dynamic_lock_areas;
|
||||||
if (old == NULL) {
|
if (old == NULL) {
|
||||||
new = topaz_tag.dynamic_lock_areas = (dynamic_lock_area_t *) calloc(sizeof(dynamic_lock_area_t, sizeof(uint8_t)));
|
new = topaz_tag.dynamic_lock_areas = (dynamic_lock_area_t *) calloc(sizeof(dynamic_lock_area_t) , sizeof(uint8_t));
|
||||||
} else {
|
} else {
|
||||||
while(old->next != NULL) {
|
while(old->next != NULL) {
|
||||||
old = old->next;
|
old = old->next;
|
||||||
|
|
Loading…
Reference in a new issue