Commit 97fa77d2 authored by Akira TAGOH's avatar Akira TAGOH
Browse files

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
parent 809f040b
Pipeline #28099 passed with stage
in 8 minutes and 59 seconds
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment