libs/web: add missing local variable declaration
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Sep 2009 08:11:25 +0000 (08:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Sep 2009 08:11:25 +0000 (08:11 +0000)
libs/web/luasrc/template.lua

index 90ac69f..2fec888 100644 (file)
@@ -76,7 +76,9 @@ function Template.__init__(self, name)
        if not self.template then
 
                -- Compile template
+               local err
                local sourcefile = viewdir .. "/" .. name .. ".htm"
+
                self.template, _, err = tparser.parse(sourcefile)
 
                -- If we have no valid template throw error, otherwise cache the template