diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-02-07 12:15:26 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-02-07 12:16:13 +0100 |
commit | 95fe2bba743464d5557fb4b4365b00cc37c29fcd (patch) | |
tree | a6b96a18850751eaa15281d037ac7a9561b77501 /src | |
parent | df3722a46c678b5c54b3df1154c1d109ad4cb6e5 (diff) | |
download | curl-95fe2bba743464d5557fb4b4365b00cc37c29fcd.tar.gz |
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 349c5391f2121e
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_operate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index ae17586d8..c9583b850 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1208,7 +1208,6 @@ static CURLcode single_transfer(struct GlobalConfig *global, char *q = httpgetfields ? httpgetfields : config->query; CURLU *uh = curl_url(); if(uh) { - char *updated; CURLUcode uerr; uerr = curl_url_set(uh, CURLUPART_URL, per->this_url, CURLU_GUESS_SCHEME); @@ -1219,6 +1218,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, config->synthetic_error = TRUE; } else { + char *updated = NULL; uerr = curl_url_set(uh, CURLUPART_QUERY, q, CURLU_APPENDQUERY); if(!uerr) uerr = curl_url_get(uh, CURLUPART_URL, &updated, |