mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 16:29:36 +03:00
Framebuffer: Ensure local history corewindow is fully initialised.
This commit is contained in:
parent
40951d5294
commit
d34b0726e3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user