diff options
Diffstat (limited to 'lib/LuaRegex.cc')
-rw-r--r-- | lib/LuaRegex.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaRegex.cc b/lib/LuaRegex.cc index e785195..61ccac7 100644 --- a/lib/LuaRegex.cc +++ b/lib/LuaRegex.cc @@ -102,7 +102,7 @@ int sLua_Regex::Regex_proceed(Lua * L, int n, Regex * reg, int caller) { return 1; L->newtable(); num = 1; - for (i = 0; i < MAX_MATCHES; i++) { + for (i = 1; i < MAX_MATCHES; i++) { if (pmatches[i].rm_so == -1) continue; L->push((lua_Number) num++); |