mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity: force amount to 0 before read call
This commit is contained in:
parent
c4327e7f8e
commit
05fdf38750
1 changed files with 1 additions and 0 deletions
|
@ -2902,6 +2902,7 @@ int lws_serve_http_file_fragment(struct lws *wsi)
|
||||||
poss -= 10 + 128;
|
poss -= 10 + 128;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
amount = 0;
|
||||||
if (lws_vfs_file_read(wsi->http.fop_fd, &amount, p, poss) < 0)
|
if (lws_vfs_file_read(wsi->http.fop_fd, &amount, p, poss) < 0)
|
||||||
goto file_had_it; /* caller will close */
|
goto file_had_it; /* caller will close */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue