summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-06-11 09:53:31 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-06-11 09:53:31 +0100
commitd34b0726e38b0ad51bf1b733fd611df0409b5001 (patch)
tree6729d1c3cca89c553c7aaaa6b28b56d9808aa632
parent40951d5294c87a85c9ff315ba5ebb13a643cea81 (diff)
downloadnetsurf-d34b0726e38b0ad51bf1b733fd611df0409b5001.tar.gz
netsurf-d34b0726e38b0ad51bf1b733fd611df0409b5001.tar.bz2
Framebuffer: Ensure local history corewindow is fully initialised.
-rw-r--r--frontends/framebuffer/local_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/framebuffer/local_history.c b/frontends/framebuffer/local_history.c
index 520129852..cc45b1f29 100644
--- a/frontends/framebuffer/local_history.c
+++ b/frontends/framebuffer/local_history.c
@@ -145,7 +145,7 @@ fb_local_history_init(fbtk_widget_t *parent,
return res;
}
- ncwin = malloc(sizeof(struct fb_local_history_window));
+ ncwin = calloc(1, sizeof(*ncwin));
if (ncwin == NULL) {
return NSERROR_NOMEM;
}