mirror of
https://github.com/curl/curl.git
synced 2026-08-26 15:43:33 +03:00
remove short-lived CURL_WRITEFUNC_OUT_OF_MEMORY
This commit is contained in:
parent
a1087db5c6
commit
d9f686db88
8 changed files with 4 additions and 49 deletions
|
|
@ -51,10 +51,6 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata)
|
|||
*/
|
||||
const size_t err_rc = (sz * nmemb) ? 0 : 1;
|
||||
|
||||
if(sz * nmemb >= CURL_WRITEFUNC_PAUSE)
|
||||
/* CURL_WRITEFUNC_PAUSE limits input size */
|
||||
return CURL_WRITEFUNC_OUT_OF_MEMORY;
|
||||
|
||||
if(!out->stream) {
|
||||
out->bytes = 0; /* nothing written yet */
|
||||
if(!out->filename) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue