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:
18f044f
)
calling curl_easy_perform() with no URL set, now returns an error as
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 Apr 2001 14:14:28 +0000
(14:14 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 11 Apr 2001 14:14:28 +0000
(14:14 +0000)
early as possible
lib/transfer.c
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
bc468f3
..
cde665c
100644
(file)
--- a/
lib/transfer.c
+++ b/
lib/transfer.c
@@
-749,6
+749,10
@@
CURLcode Curl_perform(CURL *curl)
bool port=TRUE; /* allow data->use_port to set port to use */
char *newurl = NULL; /* possibly a new URL to follow to! */
+ if(!data->url)
+ /* we can't do anything wihout URL */
+ return CURLE_URL_MALFORMAT;
+
data->followlocation=0; /* reset the location-follow counter */
data->bits.this_is_a_follow = FALSE; /* reset this */