瀏覽代碼

fix: luaU_undump的ts变量可能未初始化

Wendal Chen 2 年之前
父節點
當前提交
887c7c2061
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lua/src/lundump.c

+ 1 - 1
lua/src/lundump.c

@@ -453,7 +453,7 @@ extern void luat_os_print_heapinfo(const char* tag);
 LClosure *luaU_undump(lua_State *L, ZIO *Z, const char *name) {
   LoadState S;
   LClosure *cl;
-  TString *ts;
+  TString *ts = NULL;
 
   // 复位偏移量数据
   ptr_offset = 0;