mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-20 07:08:28 +00:00
Using file_has_data() instead of data directly.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
fe7c0333ab
commit
723011078c
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ int cmd_update_ef() {
|
||||||
return SW_MEMORY_FAILURE();
|
return SW_MEMORY_FAILURE();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!ef->data)
|
if (!file_has_data(ef))
|
||||||
return SW_DATA_INVALID();
|
return SW_DATA_INVALID();
|
||||||
|
|
||||||
uint8_t *data_merge = (uint8_t *)calloc(1, offset+data_len);
|
uint8_t *data_merge = (uint8_t *)calloc(1, offset+data_len);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue