diff options
author | Akira TAGOH <akira@tagoh.org> | 2019-04-03 11:49:42 +0000 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2019-04-03 11:49:42 +0000 |
commit | 97fa77d27facc6a31486fdca5b3b853c591f792c (patch) | |
tree | af3fd49405c8f2770a973cf2f54c04f623ee6f6c /src/fccache.c | |
parent | 809f040bc367763ceaec69568a867bbef2fee926 (diff) | |
download | fontconfig-97fa77d27facc6a31486fdca5b3b853c591f792c.tar.gz |
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
Diffstat (limited to 'src/fccache.c')
-rw-r--r-- | src/fccache.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |