io: fix invalid memory access in upload mode
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 19 Dec 2014 13:26:01 +0000 (14:26 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 19 Dec 2014 13:26:01 +0000 (14:26 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/src/io/main.c

index f9c07c3609ddc8e23e396e0b1a8624c4e260f479..68aaece5271a6e793bd9479412a8573bceb90afa 100644 (file)
@@ -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,