Fixed last commit
authorSteven Barth <steven@midlink.org>
Mon, 8 Sep 2008 17:55:24 +0000 (17:55 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 8 Sep 2008 17:55:24 +0000 (17:55 +0000)
libs/uvl/luasrc/uvl.lua

index 8610a26..98d0d59 100644 (file)
@@ -916,7 +916,8 @@ uvlitem._ucicache = {}
 function uvlitem._loadconf(self, co, c)
        co = co or self._ucicache[c]
        if not co then
 function uvlitem._loadconf(self, co, c)
        co = co or self._ucicache[c]
        if not co then
-               local co, err = cursor:get_all(c)
+               local err
+               co, err = cursor:get_all(c)
 
                if err then
                        self:error(ERR.UCILOAD(self, err))
 
                if err then
                        self:error(ERR.UCILOAD(self, err))