diff options
-rw-r--r-- | hw/lpc-rtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/lpc-rtc.c b/hw/lpc-rtc.c index 63124df..95506cd 100644 --- a/hw/lpc-rtc.c +++ b/hw/lpc-rtc.c @@ -119,6 +119,8 @@ static void lpc_init_time(void) struct tm tm; bool valid; + memset(&tm, 0, sizeof(tm)); + lock(&rtc_lock); /* If update is in progress, wait a bit */ |