no longer used variable

This commit is contained in:
PatR
2019-11-29 15:59:50 -08:00
parent 10359c7bee
commit 099fdca8cd

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 nhlua.c $NHDT-Date: 1574825214 2019/11/27 03:26:54 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.9 $ */
/* NetHack 3.6 nhlua.c $NHDT-Date: 1575071986 2019/11/29 23:59:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.12 $ */
/* Copyright (c) 2018 by Pasi Kallinen */
/* NetHack may be freely redistributed. See license for details. */
@@ -805,7 +805,6 @@ const char *fname;
char *buf = (char *) 0;
long buflen;
int cnt, llret;
long bufidx = 0;
fh = dlb_fopen(fname, "r");
if (!fh) {
@@ -820,7 +819,8 @@ const char *fname;
dlb_fseek(fh, 0L, SEEK_SET);
if ((cnt = dlb_fread(buf, 1, buflen, fh)) != buflen) {
impossible("nhl_loadlua: Error loading %s, got %i/%li bytes", fname, cnt, buflen);
impossible("nhl_loadlua: Error loading %s, got %i/%li bytes",
fname, cnt, buflen);
ret = FALSE;
goto give_up;
}
@@ -829,7 +829,8 @@ const char *fname;
llret = luaL_loadstring(L, buf);
if (llret != LUA_OK) {
impossible("luaL_loadstring: Error loading %s (errcode %i)", fname, llret);
impossible("luaL_loadstring: Error loading %s (errcode %i)",
fname, llret);
ret = FALSE;
goto give_up;
} else {
@@ -842,7 +843,7 @@ const char *fname;
}
}
give_up:
give_up:
if (buf) {
free(buf);
buf = (char *) 0;
@@ -898,7 +899,7 @@ const char *name;
goto give_up;
}
give_up:
give_up:
lua_close(L);
return ret;