Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-12-05 14:47:02 +0300
committerGitHub <noreply@github.com>2021-12-05 14:47:02 +0300
commit98bc190ac4b1b370dfc1f3a182fd760597761610 (patch)
tree909e24d4591548f0b02ecf8dd7fcf502f1aaf00c /applications/storage
parent4b8653e061175245b469cb309eaa6deb4c9ff5bc (diff)
Hackathone session: bugfixes and documentation update (#869)
* ReadMe: update flashing scripts section * Furi: add record exists method to record store. * FuriHal: early OS init and i2c timeouts based on os ticks. * Storage: replace malloc with furi_alloc, fix errors found by pvs. * iButton: properly handle shutdown in cli search command * SubGhz: proper argument type in sscanf and incorrect position of logging in switch.
Diffstat (limited to 'applications/storage')
-rw-r--r--applications/storage/storage-processing.c2
-rw-r--r--applications/storage/storages/storage-ext.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/applications/storage/storage-processing.c b/applications/storage/storage-processing.c
index 0ab7f551..8ae648aa 100644
--- a/applications/storage/storage-processing.c
+++ b/applications/storage/storage-processing.c
@@ -377,7 +377,7 @@ static FS_Error storage_process_common_rename(Storage* app, const char* old, con
StorageType type_old = storage_get_type_by_path(old);
StorageType type_new = storage_get_type_by_path(new);
- if(storage_type_is_not_valid(type_old) || storage_type_is_not_valid(type_old)) {
+ if(storage_type_is_not_valid(type_old) || storage_type_is_not_valid(type_new)) {
ret = FSE_INVALID_NAME;
} else {
if(type_old != type_new) {
diff --git a/applications/storage/storages/storage-ext.c b/applications/storage/storages/storage-ext.c
index 51de7612..22724a74 100644
--- a/applications/storage/storages/storage-ext.c
+++ b/applications/storage/storages/storage-ext.c
@@ -512,7 +512,7 @@ static FS_Error storage_ext_common_fs_info(
/******************* Init Storage *******************/
void storage_ext_init(StorageData* storage) {
- SDData* sd_data = malloc(sizeof(SDData));
+ SDData* sd_data = furi_alloc(sizeof(SDData));
sd_data->fs = &USERFatFS;
sd_data->path = "0:/";
sd_data->sd_was_present = true;