From d34b0726e38b0ad51bf1b733fd611df0409b5001 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 11 Jun 2017 09:53:31 +0100 Subject: Framebuffer: Ensure local history corewindow is fully initialised. --- frontends/framebuffer/local_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3