aboutsummaryrefslogtreecommitdiff
path: root/src/extract.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/extract.c')
-rw-r--r--src/extract.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extract.c b/src/extract.c
index f6b36e7..bb40056 100644
--- a/src/extract.c
+++ b/src/extract.c
@@ -49,6 +49,10 @@ void set_datetime() {
struct utimbuf utb;
t = dpeek(alf_hdr_time0);
+
+ /* don't set the date/time at all, if it's zero */
+ if(!t) return;
+
d = dpeek(alf_hdr_date0);
tm.tm_sec = (t & 0x1f) << 1;