mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
David Byron's fix to clear outs.filename
This commit is contained in:
parent
9d064a3927
commit
9af532e662
@ -2642,6 +2642,8 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
memset(&outs,0,sizeof(outs));
|
||||||
|
|
||||||
/* we get libcurl info right away */
|
/* we get libcurl info right away */
|
||||||
curlinfo = curl_version_info(CURLVERSION_NOW);
|
curlinfo = curl_version_info(CURLVERSION_NOW);
|
||||||
|
|
||||||
@ -2946,6 +2948,8 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
config->resume_from = 0;
|
config->resume_from = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outs.filename = outfile;
|
||||||
|
|
||||||
if(config->resume_from) {
|
if(config->resume_from) {
|
||||||
/* open file for output: */
|
/* open file for output: */
|
||||||
outs.stream=(FILE *) fopen(outfile, config->resume_from?"ab":"wb");
|
outs.stream=(FILE *) fopen(outfile, config->resume_from?"ab":"wb");
|
||||||
@ -2955,7 +2959,6 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
outs.filename = outfile;
|
|
||||||
outs.stream = NULL; /* open when needed */
|
outs.stream = NULL; /* open when needed */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user