diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-06-14 14:26:53 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-06-14 14:26:53 +0000 |
commit | 3e20192ff25453e12229a62f3b0fbb36da6b1e1c (patch) | |
tree | 4995819acdabff93dd1426be130dd77c2ca24993 /src | |
parent | ec520ceefd73391926dac1661c440c9a3138adc1 (diff) |
several minor fixes as pointed out by Björn Stenberg
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 80d977ea4..cfc576cbd 100644 --- a/src/main.c +++ b/src/main.c @@ -895,6 +895,8 @@ static int parseconfig(char *filename, free(tok2); break; } + if(res) + break; /* error detected */ } free(line); @@ -945,7 +947,7 @@ int main(int argc, char *argv[]) URLGlob *urls; int urlnum; - char *outfiles = NULL; + char *outfiles; int separator = 0; FILE *infd = stdin; @@ -955,7 +957,7 @@ int main(int argc, char *argv[]) bool stillflags=TRUE; CURL *curl; - int res=CURLE_OK; + int res; int i; outs.stream = stdout; @@ -1199,7 +1201,7 @@ int main(int argc, char *argv[]) config.errors = stderr; #ifdef WIN32 - if(!config.outfile && !(config.flags & CONF_GETTEXT)) { + if(!config.outfile && !(config.conf & CONF_GETTEXT)) { /* We get the output to stdout and we have not got the ASCII/text flag, then set stdout to be binary */ setmode( 1, O_BINARY ); |