mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
fix compiler warning: assignment within conditional expression
This commit is contained in:
parent
d0a4b50e19
commit
26aeadbc3e
@ -82,7 +82,7 @@ ares_getopt(int nargc, char * const nargv[], const char *ostr)
|
||||
}
|
||||
} /* option letter okay? */
|
||||
if ((optopt = (int)*place++) == (int)':' ||
|
||||
!(oli = strchr(ostr, optopt))) {
|
||||
(oli = strchr(ostr, optopt)) == NULL) {
|
||||
/*
|
||||
* if the user didn't specify '-' as an option,
|
||||
* assume it means EOF.
|
||||
|
Loading…
Reference in New Issue
Block a user