Using file_has_data() instead of data directly.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-01-12 20:06:31 +01:00
parent fe7c0333ab
commit 723011078c
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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);