freetype: check correct variable
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 28 Jul 2009 14:03:01 +0000 (17:03 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 28 Jul 2009 14:03:01 +0000 (17:03 +0300)
modules/misc/freetype.c

index 4b5e90f..a0c3a93 100644 (file)
@@ -361,7 +361,7 @@ static int Create( vlc_object_t *p_this )
     FcDefaultSubstitute( fontpattern );
 
     fontmatch = FcFontMatch( NULL, fontpattern, &fontresult );
-    if( fontmatch == FcResultNoMatch )
+    if( fontresult == FcResultNoMatch )
     {
         free( psz_fontsize );
         FcPatternDestroy( fontpattern );