Only add a config file to the set of config files once.
reviewed by: plam
This commit is contained in:
parent
93a27747a4
commit
cb6d97eb1b
|
@ -1,3 +1,10 @@
|
|||
2005-11-30 Behdad Befahbod <behdad@cs.toronto.edu>
|
||||
reviewed by: plam
|
||||
|
||||
* src/fcxml.c (FcConfigParseAndLoad):
|
||||
|
||||
Only add a config file to the set of config files once.
|
||||
|
||||
2005-11-29 Patrick Lam <plam@mit.edu>
|
||||
* src/fcint.h (FcCacheBankToIndex);
|
||||
|
||||
|
|
|
@ -2368,6 +2368,12 @@ FcConfigParseAndLoad (FcConfig *config,
|
|||
if (!filename)
|
||||
goto bail0;
|
||||
|
||||
if (FcStrSetMember (config->configFiles, filename))
|
||||
{
|
||||
FcStrFree (filename);
|
||||
return FcTrue;
|
||||
}
|
||||
|
||||
if (!FcStrSetAdd (config->configFiles, filename))
|
||||
{
|
||||
FcStrFree (filename);
|
||||
|
|
Loading…
Reference in New Issue