1
0
Fork 0
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:
Andy Green 2020-07-08 18:27:47 +01:00
parent c4327e7f8e
commit 05fdf38750

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