* libs/core: Made luci.util.strip_bytecode forward-compatible to upcoming OpenWRT...
authorSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 09:56:38 +0000 (09:56 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 29 Jun 2008 09:56:38 +0000 (09:56 +0000)
libs/core/luasrc/util.lua

index 9f1d050e7c43f766ae6fc7d820358d033dfa4be6..76e382b45ac536c2ec2a9552f2be2d5e87c6624b 100644 (file)
@@ -234,7 +234,7 @@ function strip_bytecode(dump)
                                offset = offset + size + subint(dump, offset, size)
                        elseif t == 3 then
                                offset = offset + num
-                       elseif t == 254 then
+                       elseif t == 254 or t == 9 then
                                offset = offset + lnum
                        end
                end