projects
/
platform
/
upstream
/
fontconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ddce88
)
Make file_stat argument to FcDirCacheLoadFile optional.
author
Keith Packard
<keithp@koto.keithp.com>
Sat, 3 Nov 2007 21:16:29 +0000
(14:16 -0700)
committer
Keith Packard
<keithp@koto.keithp.com>
Sat, 3 Nov 2007 21:16:29 +0000
(14:16 -0700)
Allow file_stat to be NULL by using a local stat structure in that case.
src/fccache.c
patch
|
blob
|
history
diff --git
a/src/fccache.c
b/src/fccache.c
index
bd8db46
..
c24b061
100644
(file)
--- a/
src/fccache.c
+++ b/
src/fccache.c
@@
-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;