mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-18 14:18:27 +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();
|
||||
}
|
||||
else {
|
||||
if (!ef->data)
|
||||
if (!file_has_data(ef))
|
||||
return SW_DATA_INVALID();
|
||||
|
||||
uint8_t *data_merge = (uint8_t *)calloc(1, offset+data_len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue