mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 20:49:49 +04:00
[FL-2811] Fix PVS-Studio warnings (#2142)
Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#define UPDATE_ROOT_DIR EXT_PATH("update")
|
||||
|
||||
/* Need at least 4 free LFS pages before update */
|
||||
#define UPDATE_MIN_INT_FREE_SPACE 2 * 4 * 1024
|
||||
#define UPDATE_MIN_INT_FREE_SPACE (2 * 4 * 1024)
|
||||
|
||||
static const char* update_prepare_result_descr[] = {
|
||||
[UpdatePrepareResultOK] = "OK",
|
||||
@@ -110,7 +110,7 @@ bool update_operation_get_current_package_manifest_path(Storage* storage, FuriSt
|
||||
}
|
||||
|
||||
static bool update_operation_persist_manifest_path(Storage* storage, const char* manifest_path) {
|
||||
const uint16_t manifest_path_len = strlen(manifest_path);
|
||||
const size_t manifest_path_len = strlen(manifest_path);
|
||||
furi_check(manifest_path && manifest_path_len);
|
||||
bool success = false;
|
||||
File* file = storage_file_alloc(storage);
|
||||
|
||||
Reference in New Issue
Block a user