From 672bb67ee6b3f1c705fca4537824e6190c4a8d57 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 Apr 2006 15:27:23 -0300 Subject: environment variable names should be configurable --- lua.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 964ecdb0..a6405f6a 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.156 2005/12/29 12:30:16 roberto Exp roberto $ +** $Id: lua.c,v 1.157 2005/12/29 16:23:32 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -306,12 +306,12 @@ static int runargs (lua_State *L, char **argv, int n) { static int handle_luainit (lua_State *L) { - const char *init = getenv("LUA_INIT"); + const char *init = getenv(LUA_INIT); if (init == NULL) return 0; /* status OK */ else if (init[0] == '@') return dofile(L, init+1); else - return dostring(L, init, "=LUA_INIT"); + return dostring(L, init, "=" LUA_INIT); } -- cgit v1.2.3-55-g6feb