diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-12-11 12:30:05 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-12-11 12:30:05 +0900 |
commit | cef2b50c6647582bb128f98f2f78331fbe7dec4e (patch) | |
tree | e2d0fa138920a1eadb5cd0f6c6edb2c6b056080e /src/fcstat.c | |
parent | 36265aeebd637e75c7b84db107afd6a35eb485c1 (diff) | |
download | fontconfig-cef2b50c6647582bb128f98f2f78331fbe7dec4e.tar.gz |
clean up
ret won't be -1 if HAVE_STRUCT_DIRENT_D_TYPE isn't defined.
Diffstat (limited to 'src/fcstat.c')
-rw-r--r-- | src/fcstat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fcstat.c b/src/fcstat.c index d8663d0..d4431e0 100644 --- a/src/fcstat.c +++ b/src/fcstat.c @@ -178,8 +178,9 @@ FcDirChecksum (const FcChar8 *dir, time_t *checksum) { struct Adler32 ctx; struct dirent **files; - int n, ret = 0; + int n; #ifndef HAVE_STRUCT_DIRENT_D_TYPE + int ret = 0; size_t len = strlen ((const char *)dir); #endif @@ -229,8 +230,10 @@ FcDirChecksum (const FcChar8 *dir, time_t *checksum) free (files[n]); } free (files); +#ifndef HAVE_STRUCT_DIRENT_D_TYPE if (ret == -1) return -1; +#endif *checksum = Adler32Finish (&ctx); |