0002-libs-web-remove-strange-static-on-variable-declaration.patch 668 B

1234567891011121314151617
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Fri, 16 May 2014 11:29:22 +0200
  3. Subject: libs/web: remove strange 'static' on variable declaration
  4. diff --git a/modules/base/src/template_parser.c b/modules/base/src/template_parser.c
  5. index fc8607b..1aa5131 100644
  6. --- a/modules/base/src/template_parser.c
  7. +++ b/modules/base/src/template_parser.c
  8. @@ -66,7 +66,7 @@ static char *strfind(char *haystack, int hslen, const char *needle, int ndlen)
  9. struct template_parser * template_open(const char *file)
  10. {
  11. struct stat s;
  12. - static struct template_parser *parser;
  13. + struct template_parser *parser;
  14. if (!(parser = malloc(sizeof(*parser))))
  15. goto err;