]> git.sesse.net Git - vlc/commitdiff
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 4b5e90f27d01491cda3a5d5b6164b37f0ab8639c..a0c3a93fdc75c301e81467fab424d14a2663849b 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 );