From: Jo-Philipp Wich Date: Fri, 19 Dec 2014 13:26:01 +0000 (+0100) Subject: io: fix invalid memory access in upload mode X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6594e53c252c64243c039891c2c0d8afdd25f782;p=project%2Fluci2%2Fui.git io: fix invalid memory access in upload mode Signed-off-by: Jo-Philipp Wich --- diff --git a/luci2/src/io/main.c b/luci2/src/io/main.c index f9c07c3..68aaece 100644 --- a/luci2/src/io/main.c +++ b/luci2/src/io/main.c @@ -503,7 +503,7 @@ init_parser(void) const char *var; multipart_parser *p; - multipart_parser_settings s = { + static multipart_parser_settings s = { .on_part_data = data_cb, .on_headers_complete = data_begin_cb, .on_part_data_end = data_end_cb,