summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}