From dfa1e0bcd3e48f85214ff2b01909b00454d44d82 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 11 Jun 2017 10:05:59 +0100 Subject: GTK: Ensure core windows are fully initialised. --- frontends/gtk/cookies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/gtk/cookies.c') diff --git a/frontends/gtk/cookies.c b/frontends/gtk/cookies.c index dc77e1c4e..500cd07f6 100644 --- a/frontends/gtk/cookies.c +++ b/frontends/gtk/cookies.c @@ -246,7 +246,7 @@ static nserror nsgtk_cookies_init(void) return NSERROR_OK; } - ncwin = malloc(sizeof(struct nsgtk_cookie_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } -- cgit v1.2.3