From 38c10c85cbfbc47eaaf64a58fb50d60e136af673 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 11 Jun 2017 10:12:50 +0100 Subject: Windows: Ensure core windows are fully initialised. --- frontends/windows/global_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/windows/global_history.c') diff --git a/frontends/windows/global_history.c b/frontends/windows/global_history.c index 0ba013bf0..dcc75ba21 100644 --- a/frontends/windows/global_history.c +++ b/frontends/windows/global_history.c @@ -126,7 +126,7 @@ static nserror nsw32_global_history_init(HINSTANCE hInstance) return NSERROR_OK; } - ncwin = malloc(sizeof(struct nsw32_global_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } -- cgit v1.2.3