Commit e37d10fa authored by Keith Packard's avatar Keith Packard
Browse files

Make file_stat argument to FcDirCacheLoadFile optional.

Allow file_stat to be NULL by using a local stat structure in that case.
parent 2ddce88c
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment