From 4aded3e0ddca84b1fb0ce11541eb19b155472e83 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 21 Jun 2002 07:01:11 +0000 Subject: [PATCH] Oops. Made a mistake when adding config file names to monitor list --- src/fcxml.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fcxml.c b/src/fcxml.c index 91d8d3f..a360ed0 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -1,5 +1,5 @@ /* - * $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.12 2002/06/19 20:08:22 keithp Exp $ + * $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.13 2002/06/21 06:14:45 keithp Exp $ * * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * @@ -1655,6 +1655,10 @@ FcConfigParseAndLoad (FcConfig *config, filename = FcConfigFilename (name); if (!filename) goto bail0; + + if (!FcStrSetAdd (config->configFiles, filename)) + goto bail0; + f = fopen ((char *) filename, "r"); free (filename); if (!f) @@ -1667,9 +1671,6 @@ FcConfigParseAndLoad (FcConfig *config, if (!FcConfigInit (&parse, name, config, p)) goto bail2; - if (!FcConfigAddConfigFile (config, filename)) - goto bail3; - XML_SetUserData (p, &parse); XML_SetDoctypeDeclHandler (p, FcStartDoctypeDecl, FcEndDoctypeDecl); -- 2.39.2