优化死机文件内存管理 1319/target/2 1320/1 1320/head 1321/target/2 1322/target/1 1323/target/1
authorpenglei <1624952103@qq.com>
Sat, 2 Nov 2024 09:07:56 +0000 (17:07 +0800)
committerpenglei <1624952103@qq.com>
Sat, 2 Nov 2024 09:07:56 +0000 (17:07 +0800)
code/sdk/drivers/peripheral/utils/custom_utils.c

index 1efaacc..0b57926 100644 (file)
@@ -1911,7 +1911,8 @@ void uapi_check_tar_file_count(char *folderpath)
     DIR *dir;
     struct dirent *entry;
     uint8_t count = 0;
-    uint32_t old_tm,new_tm;
+    uint32_t old_tm = 0;
+    uint32_t new_tm = 0;;
     char old_tm_str[11] = {0};
     char new_tm_str[11] = {0};
     char old_file_name[64] = {0};