]> git.wh0rd.org - fontconfig.git/commitdiff
Permit empty charsets in fonts.cache files
authorKeith Packard <keithp@keithp.com>
Wed, 26 Jun 2002 22:14:08 +0000 (22:14 +0000)
committerKeith Packard <keithp@keithp.com>
Wed, 26 Jun 2002 22:14:08 +0000 (22:14 +0000)
src/fcname.c

index ad78c3db4cb07d5df22e473edac9ae37db0ea91b..f61cf59e2c2c8dba01040b895544b3ca23257071 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/src/fcname.c,v 1.7 2002/06/03 08:31:15 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fcname.c,v 1.8 2002/06/19 20:08:22 keithp Exp $
  *
  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -383,7 +383,7 @@ FcNameParse (const FcChar8 *name)
                for (;;)
                {
                    name = FcNameFindNext (name, ":,", save, &delim);
-                   if (save[0] && t)
+                   if (t)
                    {
                        v = FcNameConvert (t->type, save, &m);
                        if (!FcPatternAdd (pat, t->object, v, FcTrue))