mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity: force amount to 0 before read call
This commit is contained in:
parent
4939b87e66
commit
6b639e6a81
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;
|
||||
}
|
||||
|
||||
amount = 0;
|
||||
if (lws_vfs_file_read(wsi->http.fop_fd, &amount, p, poss) < 0)
|
||||
goto file_had_it; /* caller will close */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue