mirror of
https://github.com/curl/curl.git
synced 2026-08-26 12:23:34 +03:00
lib: remove redundant code
Closes https://github.com/curl/curl/pull/6576
This commit is contained in:
parent
cc9c4e0f4e
commit
1cd823ed5a
6 changed files with 8 additions and 21 deletions
|
|
@ -91,15 +91,13 @@ static bool countcheck(const char *func, int line, const char *source)
|
|||
should not be made */
|
||||
if(memlimit && source) {
|
||||
if(!memsize) {
|
||||
if(source) {
|
||||
/* log to file */
|
||||
curl_dbg_log("LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
/* log to stderr also */
|
||||
fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
fflush(curl_dbg_logfile); /* because it might crash now */
|
||||
}
|
||||
/* log to file */
|
||||
curl_dbg_log("LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
/* log to stderr also */
|
||||
fprintf(stderr, "LIMIT %s:%d %s reached memlimit\n",
|
||||
source, line, func);
|
||||
fflush(curl_dbg_logfile); /* because it might crash now */
|
||||
errno = ENOMEM;
|
||||
return TRUE; /* RETURN ERROR! */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue