StorageAPI: Set key of rootitem to NULL in WUPS_CloseStorage

This commit is contained in:
Maschell 2023-01-24 14:40:51 +01:00
parent 00f7bf0601
commit e7d3027cd6

View File

@ -116,6 +116,7 @@ WUPSStorageError WUPS_CloseStorage(void) {
closeItem(&rootItem);
rootItem.data_size = 0;
rootItem.data = nullptr;
rootItem.key = nullptr;
}
return result;