mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-09 03:23:42 +02:00
Fix potential crash on delete file.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -114,7 +114,7 @@ uintptr_t allocate_free_addr(uint16_t size, bool persistent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int flash_clear_file(file_t *file) {
|
int flash_clear_file(file_t *file) {
|
||||||
if (file == NULL) {
|
if (file == NULL || file->data == NULL) {
|
||||||
return CCID_OK;
|
return CCID_OK;
|
||||||
}
|
}
|
||||||
uintptr_t base_addr =
|
uintptr_t base_addr =
|
||||||
|
|||||||
Reference in New Issue
Block a user