]> Pileus Git - ~andy/linux/blobdiff - arch/alpha/kernel/time.c
alpha: Fix uninitialized value in read_persistent_clock.
[~andy/linux] / arch / alpha / kernel / time.c
index a58e84f1a63b76cc3e96856d10736a1c03ba6872..918e8e0b72ff1e3220845ea410277a83ff326517 100644 (file)
@@ -153,6 +153,7 @@ void read_persistent_clock(struct timespec *ts)
                year += 100;
 
        ts->tv_sec = mktime(year, mon, day, hour, min, sec);
+       ts->tv_nsec = 0;
 }