From 0b6a02621525fe0fea7ba09c18c54fe4719a8d6d Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 6 Oct 2018 02:05:06 +0200 Subject: [PATCH] Fixed a newly-introduced AT NVR bug. --- src/nvr_at.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvr_at.c b/src/nvr_at.c index d10620233..455e6839f 100644 --- a/src/nvr_at.c +++ b/src/nvr_at.c @@ -189,7 +189,7 @@ * including the later update (DS12887A) which implemented a * "century" register to be compatible with Y2K. * - * Version: @(#)nvr_at.c 1.0.13 2018/10/06 + * Version: @(#)nvr_at.c 1.0.14 2018/10/06 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -666,6 +666,7 @@ nvr_at_init(const device_t *info) /* Allocate an NVR for this machine. */ nvr = (nvr_t *)malloc(sizeof(nvr_t)); if (nvr == NULL) return(NULL); + memset(nvr, 0x00, sizeof(nvr_t)); local = (local_t *)malloc(sizeof(local_t)); memset(local, 0x00, sizeof(local_t));