modules/niu: fix possible sdk crash in overview page
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 27 Nov 2009 16:52:34 +0000 (16:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 27 Nov 2009 16:52:34 +0000 (16:52 +0000)
modules/niu/luasrc/niulib.lua

index dc3df5e..73918a8 100644 (file)
@@ -39,7 +39,7 @@ function eth_get_available(except)
 end
 
 function eth_get_bridged(except)
 end
 
 function eth_get_bridged(except)
-       local devs = state:get("network", except, "device")
+       local devs = state:get("network", except, "device") or ""
        
        local ifs = {}
        local cnt = 0
        
        local ifs = {}
        local cnt = 0