mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
tool_operate: fix misplaced initialization of orig_noprogress
... and orig_isatty which caused --silent to be entirely ignored in case the standard output was redirected to a file!
This commit is contained in:
parent
2c7cfd2926
commit
487406c3c0
@ -140,8 +140,8 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||||||
int res = 0;
|
int res = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
bool orig_noprogress = config->noprogress;
|
bool orig_noprogress;
|
||||||
bool orig_isatty = config->isatty;
|
bool orig_isatty;
|
||||||
|
|
||||||
errorbuffer[0] = '\0';
|
errorbuffer[0] = '\0';
|
||||||
/* default headers output stream is stdout */
|
/* default headers output stream is stdout */
|
||||||
@ -396,6 +396,10 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* save the values of noprogress and isatty to restore them later on */
|
||||||
|
orig_noprogress = config->noprogress;
|
||||||
|
orig_isatty = config->isatty;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Nested loops start here.
|
** Nested loops start here.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user