Use parentheses around assignment used as truth value, fix warning.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 18 Feb 2009 21:30:44 +0000 (21:30 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 18 Feb 2009 21:30:44 +0000 (21:30 +0000)
Originally committed as revision 17437 to svn://svn.ffmpeg.org/ffmpeg/trunk

vhook/imlib2.c

index cf55031..eed6c23 100644 (file)
@@ -165,7 +165,7 @@ int Configure(void **ctxp, int argc, char *argv[])
 
     /* Use ':' to split FONTPATH */
     if (fp)
-        while (p = strchr(fp, ':')) {
+        while ((p = strchr(fp, ':'))) {
             *p = 0;
             imlib_add_path_to_font_path(fp);
             fp = p + 1;