Revert "Keep the same behavior to the return value of FcConfigParseAndLoad"
This reverts commit dc56ff8040
.
This commit is contained in:
parent
3b69b7ad92
commit
918ed92226
|
@ -3368,10 +3368,7 @@ FcConfigParseAndLoad (FcConfig *config,
|
||||||
|
|
||||||
f = FcConfigFilename (name);
|
f = FcConfigFilename (name);
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
|
||||||
ret = FcTrue;
|
|
||||||
goto bail0;
|
goto bail0;
|
||||||
}
|
|
||||||
if (sysroot)
|
if (sysroot)
|
||||||
filename = FcStrBuildFilename (sysroot, f, NULL);
|
filename = FcStrBuildFilename (sysroot, f, NULL);
|
||||||
else
|
else
|
||||||
|
@ -3402,7 +3399,6 @@ FcConfigParseAndLoad (FcConfig *config,
|
||||||
fd = FcOpen ((char *) filename, O_RDONLY);
|
fd = FcOpen ((char *) filename, O_RDONLY);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
FcStrFree (filename);
|
FcStrFree (filename);
|
||||||
ret = FcTrue;
|
|
||||||
goto bail1;
|
goto bail1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue