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/local_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/gtk/local_history.c') diff --git a/frontends/gtk/local_history.c b/frontends/gtk/local_history.c index b36ccd23a..cc9580130 100644 --- a/frontends/gtk/local_history.c +++ b/frontends/gtk/local_history.c @@ -141,7 +141,7 @@ nsgtk_local_history_init(struct browser_window *bw, return res; } - ncwin = malloc(sizeof(struct nsgtk_local_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } -- cgit v1.2.3