mirror of
https://github.com/curl/curl.git
synced 2025-09-16 09:02:40 +03:00
tool_operate: move the 'updated' variable
This was already done by Dan Fandrich in the previous PR but somehow I
lost that fixup.
Follow-up to 349c5391f2
This commit is contained in:
parent
df3722a46c
commit
95fe2bba74
|
@ -1208,7 +1208,6 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||||
char *q = httpgetfields ? httpgetfields : config->query;
|
char *q = httpgetfields ? httpgetfields : config->query;
|
||||||
CURLU *uh = curl_url();
|
CURLU *uh = curl_url();
|
||||||
if(uh) {
|
if(uh) {
|
||||||
char *updated;
|
|
||||||
CURLUcode uerr;
|
CURLUcode uerr;
|
||||||
uerr = curl_url_set(uh, CURLUPART_URL, per->this_url,
|
uerr = curl_url_set(uh, CURLUPART_URL, per->this_url,
|
||||||
CURLU_GUESS_SCHEME);
|
CURLU_GUESS_SCHEME);
|
||||||
|
@ -1219,6 +1218,7 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||||
config->synthetic_error = TRUE;
|
config->synthetic_error = TRUE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
char *updated = NULL;
|
||||||
uerr = curl_url_set(uh, CURLUPART_QUERY, q, CURLU_APPENDQUERY);
|
uerr = curl_url_set(uh, CURLUPART_QUERY, q, CURLU_APPENDQUERY);
|
||||||
if(!uerr)
|
if(!uerr)
|
||||||
uerr = curl_url_get(uh, CURLUPART_URL, &updated,
|
uerr = curl_url_get(uh, CURLUPART_URL, &updated,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user