aboutsummaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c5
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