1
0
Fork 0
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:
Andy Green 2020-07-08 18:27:47 +01:00
parent 4939b87e66
commit 6b639e6a81

View file

@ -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 */