mirror of https://github.com/moparisthebest/curl
tool_parsecfg: fix -Wcast-qual warning
Don't convert string literal to char * before assigning it to const char *.
This commit is contained in:
parent
ea1b864786
commit
f67aa4d31c
|
@ -253,7 +253,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
if(res != PARAM_OK && res != PARAM_NEXT_OPERATION) {
|
||||
/* the help request isn't really an error */
|
||||
if(!strcmp(filename, "-")) {
|
||||
filename = (char *)"<stdin>";
|
||||
filename = "<stdin>";
|
||||
}
|
||||
if(res != PARAM_HELP_REQUESTED &&
|
||||
res != PARAM_MANUAL_REQUESTED &&
|
||||
|
|
Loading…
Reference in New Issue