Avoid assignments in comparisons.

This commit is contained in:
nekral-guest 2007-12-31 14:37:24 +00:00
parent ce3c44b0f7
commit 4af02cb083

View File

@ -210,7 +210,8 @@ static char *copy_field (char *in, char *out, char *extra)
char *cp = NULL;
while (NULL != in) {
if ((cp = strchr (in, ',')) != NULL) {
cp = strchr (in, ',');
if (NULL != cp) {
*cp++ = '\0';
}