]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Parenthesize assignment when used as truth value to prevent gcc
authorPavel Janík <Pavel@Janik.cz>
Tue, 1 Jan 2002 22:08:54 +0000 (22:08 +0000)
committerPavel Janík <Pavel@Janik.cz>
Tue, 1 Jan 2002 22:08:54 +0000 (22:08 +0000)
warnings.

lib-src/b2m.c

index 8801f2f702f1c757888e592eea1d51dc386c8a4c..05caa1424e0046eb362f1f121d9b0b85c7c4ef10 100644 (file)
@@ -168,7 +168,7 @@ main (argc, argv)
              p = strtok (data.buffer, " ,\r\n\t");
              labels = "X-Babyl-Labels: ";
 
-             while (p = strtok (NULL, " ,\r\n\t"))
+             while ((p = strtok (NULL, " ,\r\n\t")))
                labels = concat (labels, p, ", ");
 
              p = &labels[strlen (labels) - 2];