diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,7 +167,8 @@ static int db_getinfo (lua_State *L) { | |||
167 | return luaL_argerror(L, arg+2, "invalid option"); | 167 | return luaL_argerror(L, arg+2, "invalid option"); |
168 | lua_newtable(L); /* table to collect results */ | 168 | lua_newtable(L); /* table to collect results */ |
169 | if (strchr(options, 'S')) { | 169 | if (strchr(options, 'S')) { |
170 | settabss(L, "source", ar.source); | 170 | lua_pushlstring(L, ar.source, ar.srclen); |
171 | lua_setfield(L, -2, "source"); | ||
171 | settabss(L, "short_src", ar.short_src); | 172 | settabss(L, "short_src", ar.short_src); |
172 | settabsi(L, "linedefined", ar.linedefined); | 173 | settabsi(L, "linedefined", ar.linedefined); |
173 | settabsi(L, "lastlinedefined", ar.lastlinedefined); | 174 | settabsi(L, "lastlinedefined", ar.lastlinedefined); |