diff options
author | antirez <antirez@gmail.com> | 2012-04-13 14:54:49 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-04-13 14:54:49 +0200 |
commit | 3a0214041542433895004f2fe97b08a3c4e9cb61 (patch) | |
tree | d956151c39c75edf3e5d5e12e38409a3055f4d2a /src | |
parent | 3cd4ad267c9aa2a94b9f901acd1e29b6653d981d (diff) | |
download | redis-3a0214041542433895004f2fe97b08a3c4e9cb61.tar.gz |
Use Lua tostring() before concatenation.
Diffstat (limited to 'src')
-rw-r--r-- | src/scripting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c index 76b25ad23..c449714f5 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -437,7 +437,7 @@ void scriptingEnableGlobalsProtection(lua_State *lua) { s[j++]="end\n"; s[j++]="mt.__index = function (t, n)\n"; s[j++]=" if debug.getinfo(2) and debug.getinfo(2, \"S\").what ~= \"C\" then\n"; - s[j++]=" error(\"Script attempted to access unexisting global variable '\"..n..\"'\", 2)\n"; + s[j++]=" error(\"Script attempted to access unexisting global variable '\"..tostring(n)..\"'\", 2)\n"; s[j++]=" end\n"; s[j++]=" return rawget(t, n)\n"; s[j++]="end\n"; |