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 dc3df5ed43de47e8d42f8dcdfff22e95e2bf255d..73918a8ac727baccb5551ce8ac62a874df3c4478 100644 (file)
@@ -39,7 +39,7 @@ function eth_get_available(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