diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2008-04-28 08:45:24 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2008-04-28 08:45:24 +0000 |
commit | 5b93d006ed6fa1c5990c7079d92d3b7d195068b0 (patch) | |
tree | d2ddf0f582719f4e67e618f99a47fa32db728c27 /Build/source/libs/lua51 | |
parent | 6b4bb4d5747a2819cb015fcfe7e6a7521580adbb (diff) |
Aix compilation fixes a from Vladimir Volovich
git-svn-id: svn://tug.org/texlive/trunk@7695 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/lua51')
-rw-r--r-- | Build/source/libs/lua51/liolib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/libs/lua51/liolib.c b/Build/source/libs/lua51/liolib.c index c009946079e..f86e436ff2a 100644 --- a/Build/source/libs/lua51/liolib.c +++ b/Build/source/libs/lua51/liolib.c @@ -157,9 +157,10 @@ static int io_open (lua_State *L) { static int io_open_ro (lua_State *L) { const char *filename = luaL_checkstring(L, 1); const char *mode = luaL_optstring(L, 2, "r"); + FILE **pf; if ((strcmp(mode,"r")!= 0)&&(strcmp(mode,"rb")!=0)) return pushresult(L, 0, filename); - FILE **pf = newfile(L); + pf = newfile(L); *pf = fopen(filename, mode); return (*pf == NULL) ? pushresult(L, 0, filename) : 1; } |