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 90ac69fbac933d22cf354704f5e1df1a6588f6e7..2fec888c307d42a54acee64f5c95786b21733c02 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