diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 16:37:28 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-02-25 20:52:36 +0000 |
commit | 249dc8357169e610866b92e57d260a3aab63aba1 (patch) | |
tree | b52f044e82fd8b2bfef6c7172a4888e94fc549c3 /src/tool_main.c | |
parent | 0704dd770d545271ff11210e983a434a043738a7 (diff) | |
download | curl-249dc8357169e610866b92e57d260a3aab63aba1.tar.gz |
tool: Moved --showerror to the global config
Other global options such as --libcurl, --trace and --verbose to
follow.
Diffstat (limited to 'src/tool_main.c')
-rw-r--r-- | src/tool_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_main.c b/src/tool_main.c index 7bdd253aa..06c28395f 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -130,6 +130,9 @@ static CURLcode main_init(struct GlobalConfig *config) _djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE; #endif + /* Initialise the global config */ + config->showerror = -1; /* Will show errors */ + /* Allocate the initial operate config */ config->first = config->last = malloc(sizeof(struct OperationConfig)); if(config->first) { @@ -213,7 +216,7 @@ int main(int argc, char *argv[]) result = operate(&global, argc, argv); #ifdef __SYMBIAN32__ - if(global.first->showerror) + if(global.showerror) tool_pressanykey(); #endif |