Make file_stat argument to FcDirCacheLoadFile optional.
Allow file_stat to be NULL by using a local stat structure in that case.
This commit is contained in:
parent
2ddce88cde
commit
e37d10fa74
|
@ -559,7 +559,10 @@ FcDirCacheLoadFile (const FcChar8 *cache_file, struct stat *file_stat)
|
|||
{
|
||||
int fd;
|
||||
FcCache *cache;
|
||||
struct stat my_file_stat;
|
||||
|
||||
if (!file_stat)
|
||||
file_stat = &my_file_stat;
|
||||
fd = FcDirCacheOpenFile (cache_file, file_stat);
|
||||
if (fd < 0)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue