From: Yang Tse Date: Mon, 7 Apr 2008 12:40:05 +0000 (+0000) Subject: fix compiler warning: assignment within conditional expression X-Git-Tag: cares-1_5_2~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26aeadbc3ef72cfe4a0aa88ae42091bf5a7b3099;p=curl fix compiler warning: assignment within conditional expression --- diff --git a/ares/ares_getopt.c b/ares/ares_getopt.c index 3b565a49a..177b26fea 100644 --- a/ares/ares_getopt.c +++ b/ares/ares_getopt.c @@ -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.