summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-20 22:42:54 +0800
committerruki <[email protected]>2019-08-20 10:17:29 +0800
commit22a22766a667c3273fc4a4a2e58ce55aba8466b3 (patch)
tree1c717219c4d3d465573dfe72a3332d611f569225
parent0a691680dd292e59fcd63e9710b7cdeaf6a52ce7 (diff)
fix file.rawfd
-rw-r--r--core/src/xmake/io/file_rawfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/io/file_rawfd.c b/core/src/xmake/io/file_rawfd.c
index a46224472..dcc69eceb 100644
--- a/core/src/xmake/io/file_rawfd.c
+++ b/core/src/xmake/io/file_rawfd.c
@@ -67,10 +67,10 @@ tb_int_t xm_io_file_rawfd(lua_State* lua)
// get file raw fd
if (xm_io_file_is_file(file))
{
- tb_file_ref_t file = tb_null;
- if (tb_stream_ctrl(file->stream, TB_STREAM_CTRL_FILE_GET_FILE, &file))
+ tb_file_ref_t rawfile = tb_null;
+ if (tb_stream_ctrl(file->stream, TB_STREAM_CTRL_FILE_GET_FILE, &rawfile))
{
- lua_pushnumber(lua, xm_io_file2fd(file));
+ lua_pushnumber(lua, xm_io_file2fd(rawfile));
return 1;
}
}