diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/time/getdate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/time/getdate.c b/src/time/getdate.c index 89f21699..420cd8e4 100644 --- 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); |