diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 09:53:31 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 09:53:31 +0100 |
commit | d34b0726e38b0ad51bf1b733fd611df0409b5001 (patch) | |
tree | 6729d1c3cca89c553c7aaaa6b28b56d9808aa632 /frontends/framebuffer/local_history.c | |
parent | 40951d5294c87a85c9ff315ba5ebb13a643cea81 (diff) | |
download | netsurf-d34b0726e38b0ad51bf1b733fd611df0409b5001.tar.gz netsurf-d34b0726e38b0ad51bf1b733fd611df0409b5001.tar.bz2 |
Framebuffer: Ensure local history corewindow is fully initialised.
Diffstat (limited to 'frontends/framebuffer/local_history.c')
-rw-r--r-- | frontends/framebuffer/local_history.c | 2 |
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; } |