Skip to content
Snippets Groups Projects
Commit 3ebfaf6a authored by Steve Holme's avatar Steve Holme
Browse files

tool_operate: Fixed uninitialised variable under some error situations

For example when a URL is not specified or the headers file fails to
open.
parent ed02f0ab
No related branches found
No related tags found
No related merge requests found
......@@ -205,8 +205,9 @@ static CURLcode operate_do(struct GlobalConfig *global,
int res = 0;
unsigned long li;
bool orig_noprogress;
bool orig_isatty;
/* Save the values of noprogress and isatty to restore them later on */
bool orig_noprogress = global->noprogress;
bool orig_isatty = global->isatty;
errorbuffer[0] = '\0';
......@@ -336,10 +337,6 @@ static CURLcode operate_do(struct GlobalConfig *global,
}
}
/* save the values of noprogress and isatty to restore them later on */
orig_noprogress = global->noprogress;
orig_isatty = global->isatty;
/*
** Nested loops start here.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment