[Fontconfig] fontconfig: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 3 12:00:52 UTC 2019


 src/fccache.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 97fa77d27facc6a31486fdca5b3b853c591f792c
Author: Akira TAGOH <akira at tagoh.org>
Date:   Wed Apr 3 11:49:42 2019 +0000

    Reset errno to do error handling properly
    
    This fixes the weird behavior when running with SOURCE_DATE_EPOCH=0:
    
    Fontconfig: SOURCE_DATE_EPOCH: strtoull: No such file or directory: 0

diff --git a/src/fccache.c b/src/fccache.c
index 03b4f38..fa3451e 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -1109,6 +1109,7 @@ FcDirChecksum (struct stat *statb)
     source_date_epoch = getenv("SOURCE_DATE_EPOCH");
     if (source_date_epoch)
     {
+	errno = 0;
 	epoch = strtoull(source_date_epoch, &endptr, 10);
 
 	if (endptr == source_date_epoch)


More information about the Fontconfig mailing list