diff options
author | Tianling Shen <cnsztl@immortalwrt.org> | 2023-04-14 04:45:24 +0800 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2023-04-14 10:50:02 +0300 |
commit | 588c6a1e4bc4c79dab2341ca1c9541e42aaf8665 (patch) | |
tree | 95920dd5fc24859f8c088558b239cdf31cf9631f /modules/luci-base/ucode | |
parent | 54ca17e6980d7e649793ed9e052617d51f360cfe (diff) |
luci-base: http.uc: fix reference error of undeclared variable `err`
The variable `err` was used without initialized.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'modules/luci-base/ucode')
-rw-r--r-- | modules/luci-base/ucode/http.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/ucode/http.uc b/modules/luci-base/ucode/http.uc index e8982e77a0..579dda3ced 100644 --- a/modules/luci-base/ucode/http.uc +++ b/modules/luci-base/ucode/http.uc @@ -29,7 +29,7 @@ export let HTTP_MAX_CONTENT = 1024*100; // 100 kB maximum content size // o Boolean which indicates whether the current chunk is the last one (eof) export function mimedecode_message_body(src, msg, file_cb) { let len = 0, maxlen = +msg.env.CONTENT_LENGTH; - let header, field, parser; + let err, header, field, parser; parser = multipart_parser(msg.env.CONTENT_TYPE, function(what, buffer, length) { if (what == parser.PART_INIT) { |