mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 00:28:48 -05:00
tool_parsecfg: Reworked error handling from commit fc59a9e1
This commit is contained in:
parent
5e097583f7
commit
ed02f0abca
@ -250,7 +250,8 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||||||
res = PARAM_NO_MEM;
|
res = PARAM_NO_MEM;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(res != PARAM_OK) {
|
|
||||||
|
if(res != PARAM_OK && res != PARAM_NEXT_OPERATION) {
|
||||||
/* the help request isn't really an error */
|
/* the help request isn't really an error */
|
||||||
if(!strcmp(filename, "-")) {
|
if(!strcmp(filename, "-")) {
|
||||||
filename = (char *)"<stdin>";
|
filename = (char *)"<stdin>";
|
||||||
|
Loading…
Reference in New Issue
Block a user