diff options
Diffstat (limited to 'lualib/lua_magic/init.lua')
-rw-r--r-- | lualib/lua_magic/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_magic/init.lua b/lualib/lua_magic/init.lua index 98d4845eb..59e2a6e36 100644 --- a/lualib/lua_magic/init.lua +++ b/lualib/lua_magic/init.lua @@ -140,7 +140,7 @@ local function match_chunk(chunk, input, tlen, offset, trie, processed_tbl, log_ if not res[ext] then res[ext] = 0 end - if match.weight then + if weight then res[ext] = res[ext] + weight else res[ext] = res[ext] + 1 |