From: Manish Singh Date: Mon, 1 Sep 2003 05:11:17 +0000 (+0000) Subject: FcConfigAppFontClear: Support passing NULL to use default config. X-Git-Tag: fc-2_2_91~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3ef32bcdc4662fbc10bc5217ea7849cd31480d73;p=fontconfig.git FcConfigAppFontClear: Support passing NULL to use default config. --- diff --git a/ChangeLog b/ChangeLog index d265c74..79ca94a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-31 Manish Singh + + * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to + use default config. + 2003-08-15 Carl Worth * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit. diff --git a/src/fccfg.c b/src/fccfg.c index 12cad84..f393c79 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config, void FcConfigAppFontClear (FcConfig *config) { + if (!config) + { + config = FcConfigGetCurrent (); + if (!config) + return; + } + FcConfigSetFonts (config, 0, FcSetApplication); }