From b395c3c85251d4e8761704d8e3a3c9f9fa5b45cc Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 12 Dec 2012 08:35:50 +0100 Subject: fontconfig mesa pixman xkeyboard-config git update 12 dev 2012 fontconfig: 9ce36f4bbebc702a35d0cd9f1a59d5b828549bc6 mesa: 621259b3de1f15c879620bbf17764fd8a27ae6f5 pixman: fdab3c1b6cd9c5e197ec3f6bc0a03da32880e317 xkeyboard-config: 378597a9d525f069c049fdd6d04ff628123f82c7 --- fontconfig/src/fcstat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fontconfig/src/fcstat.c') diff --git a/fontconfig/src/fcstat.c b/fontconfig/src/fcstat.c index d8663d036..d4431e00e 100644 --- a/fontconfig/src/fcstat.c +++ b/fontconfig/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); -- cgit v1.2.3