瀏覽代碼

fix: fota.file的指针声明错误

Wendal Chen 3 年之前
父節點
當前提交
0fa11631f0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      luat/modules/luat_lib_fota.c

+ 1 - 1
luat/modules/luat_lib_fota.c

@@ -135,7 +135,7 @@ static int l_fota_file(lua_State* L)
         return 3;
     }
     #define BUFF_SIZE (4096)
-    char buff = luat_heap_malloc(BUFF_SIZE);
+    char *buff = luat_heap_malloc(BUFF_SIZE);
     if (buff == NULL) {
         luat_fs_fclose(fd);
         LLOGE("out of memory when reading file %s", path);