]> granicus.if.org Git - graphviz/commitdiff
janitor - fix warning:
authorellson <devnull@localhost>
Sat, 19 Nov 2005 21:01:28 +0000 (21:01 +0000)
committerellson <devnull@localhost>
Sat, 19 Nov 2005 21:01:28 +0000 (21:01 +0000)
"neatoinit.c:204: warning: suggest parentheses around assignment used as truth value"

lib/neatogen/neatoinit.c

index bf5edaac85a3ed3300416741991a7d20d1fafa3d..9717f8d94e76a474560f8fd8036babe22d679823 100644 (file)
@@ -201,7 +201,7 @@ static int numFields(unsigned char *pos)
     do {
        while (isspace(*pos))
            pos++;              /* skip white space */
-       if (c = *pos) { /* skip token */
+       if ((c = *pos)) { /* skip token */
            cnt++;
            while ((c = *pos) && !isspace(c) && (c != ';'))
                pos++;