Avoid assignments in comparisons.
This commit is contained in:
parent
ce3c44b0f7
commit
4af02cb083
@ -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';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user