Module Name:    xsrc
Committed By:   mrg
Date:           Wed Aug 30 20:09:45 UTC 2017

Modified Files:
        xsrc/external/mit/fontconfig/dist/src: fcfreetype.c

Log Message:
achVendID is an array not a pointer so it is always "true".
avoid clang warnings by not testing it.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.7 -r1.2 \
    xsrc/external/mit/fontconfig/dist/src/fcfreetype.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/fontconfig/dist/src/fcfreetype.c
diff -u xsrc/external/mit/fontconfig/dist/src/fcfreetype.c:1.1.1.7 xsrc/external/mit/fontconfig/dist/src/fcfreetype.c:1.2
--- xsrc/external/mit/fontconfig/dist/src/fcfreetype.c:1.1.1.7	Tue Aug 29 08:32:28 2017
+++ xsrc/external/mit/fontconfig/dist/src/fcfreetype.c	Wed Aug 30 20:09:45 2017
@@ -1286,7 +1286,7 @@ FcFreeTypeQueryFace (const FT_Face  face
 
     if (os2 && os2->version >= 0x0001 && os2->version != 0xffff)
     {
-	if (os2->achVendID && os2->achVendID[0] != 0)
+	if (os2->achVendID[0] != 0)
 	{
 	    foundry_ = (FcChar8 *) malloc (sizeof (os2->achVendID) + 1);
 	    memcpy ((void *)foundry_, os2->achVendID, sizeof (os2->achVendID));

Reply via email to