projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ff1ca3
)
Lehel Bernadt's fix to prevent debug message to get sent on errors when
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 5 Nov 2002 11:11:10 +0000
(11:11 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 5 Nov 2002 11:11:10 +0000
(11:11 +0000)
debug wasn't enabled
lib/sendf.c
patch
|
blob
|
history
diff --git
a/lib/sendf.c
b/lib/sendf.c
index c4addb527116bd469d0b1c696aaa47795795f52e..77c4cf333cdd5080d1b2624768d9b97f54443632 100644
(file)
--- a/
lib/sendf.c
+++ b/
lib/sendf.c
@@
-154,8
+154,9
@@
void Curl_failf(struct SessionHandle *data, const char *fmt, ...)
vsnprintf(data->set.errorbuffer, CURL_ERROR_SIZE, fmt, ap);
data->state.errorbuf = TRUE; /* wrote error string */
- Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
- strlen(data->set.errorbuffer));
+ if(data->set.verbose)
+ Curl_debug(data, CURLINFO_TEXT, data->set.errorbuffer,
+ strlen(data->set.errorbuffer));
}
va_end(ap);
}