projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: move x87-family lrint functions to C with inline asm
[musl]
/
src
/
time
/
getdate.c
diff --git
a/src/time/getdate.c
b/src/time/getdate.c
index
89f2169
..
420cd8e
100644
(file)
--- a/
src/time/getdate.c
+++ b/
src/time/getdate.c
@@
-37,7
+37,8
@@
struct tm *getdate(const char *s)
}
}
- getdate_err = 7;
+ if (ferror(f)) getdate_err = 5;
+ else getdate_err = 7;
out:
if (f) fclose(f);
pthread_setcancelstate(cs, 0);