Fix crash with FcConfigSetCurrent(NULL)
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 8 Mar 2013 10:53:27 +0000 (05:53 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 8 Mar 2013 10:53:27 +0000 (05:53 -0500)
src/fccfg.c

index b762376..7da50b5 100644 (file)
@@ -429,7 +429,7 @@ retry:
     if (config == cfg)
        return FcTrue;
 
-    if (!config->fonts[FcSetSystem])
+    if (config && !config->fonts[FcSetSystem])
        if (!FcConfigBuildFonts (config))
            return FcFalse;