diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 10:05:59 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 10:05:59 +0100 |
commit | dfa1e0bcd3e48f85214ff2b01909b00454d44d82 (patch) | |
tree | c391f48f2fc14bbea691784a5e8896b9ecd015f3 /frontends/gtk/global_history.c | |
parent | d34b0726e38b0ad51bf1b733fd611df0409b5001 (diff) | |
download | netsurf-dfa1e0bcd3e48f85214ff2b01909b00454d44d82.tar.gz netsurf-dfa1e0bcd3e48f85214ff2b01909b00454d44d82.tar.bz2 |
GTK: Ensure core windows are fully initialised.
Diffstat (limited to 'frontends/gtk/global_history.c')
-rw-r--r-- | frontends/gtk/global_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/global_history.c b/frontends/gtk/global_history.c index 66ba1a666..360eb4e1a 100644 --- a/frontends/gtk/global_history.c +++ b/frontends/gtk/global_history.c @@ -299,7 +299,7 @@ static nserror nsgtk_global_history_init(void) return NSERROR_OK; } - ncwin = malloc(sizeof(struct nsgtk_global_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } |