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:
bc9705f
)
Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 13 Mar 2002 13:10:52 +0000
(13:10 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 13 Mar 2002 13:10:52 +0000
(13:10 +0000)
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/url.c
b/lib/url.c
index e42ce9aeda290dd375c0774a7108a32c9e48ad13..cd1854328dbdf8bf76ec5028a28c0fb0f1d4804f 100644
(file)
--- a/
lib/url.c
+++ b/
lib/url.c
@@
-752,7
+752,11
@@
CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
* Progress callback function
*/
data->set.fprogress = va_arg(param, curl_progress_callback);
- data->progress.callback = TRUE; /* no longer internal */
+ if(data->set.fprogress)
+ data->progress.callback = TRUE; /* no longer internal */
+ else
+ data->progress.callback = FALSE; /* NULL enforces internal */
+
break;
case CURLOPT_PROGRESSDATA:
/*