[luci] [PATCH 2/4] libs/web: remove strange 'static' on variable declaration

Matthias Schiffer mschiffer at universe-factory.net
Sun Jul 27 04:44:55 CEST 2014


Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 modules/base/src/template_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/base/src/template_parser.c b/modules/base/src/template_parser.c
index fc8607b..1aa5131 100644
--- a/modules/base/src/template_parser.c
+++ b/modules/base/src/template_parser.c
@@ -66,7 +66,7 @@ static char *strfind(char *haystack, int hslen, const char *needle, int ndlen)
 struct template_parser * template_open(const char *file)
 {
 	struct stat s;
-	static struct template_parser *parser;
+	struct template_parser *parser;
 
 	if (!(parser = malloc(sizeof(*parser))))
 		goto err;
-- 
2.0.3



More information about the luci mailing list