Framebuffer: Ensure local history corewindow is fully initialised.

This commit is contained in:
Michael Drake 2017-06-11 09:53:31 +01:00
parent 40951d5294
commit d34b0726e3

View File

@ -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;
}