mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 14:41:55 +00:00
better usage of fwrite()
This commit is contained in:
@@ -1657,7 +1657,7 @@ int uwsgi_read_whole_body(struct wsgi_request *wsgi_req, char *buf, size_t len)
|
||||
uwsgi_error("read()");
|
||||
goto end;
|
||||
}
|
||||
if (!fwrite(buf, post_chunk, 1, wsgi_req->async_post)) {
|
||||
if (fwrite(buf, post_chunk, 1, wsgi_req->async_post) != 1) {
|
||||
uwsgi_error("fwrite()");
|
||||
goto end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user