diff options
Diffstat (limited to 'frontends/gtk/local_history.c')
-rw-r--r-- | frontends/gtk/local_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/local_history.c b/frontends/gtk/local_history.c index b36ccd23a..cc9580130 100644 --- a/frontends/gtk/local_history.c +++ b/frontends/gtk/local_history.c @@ -141,7 +141,7 @@ nsgtk_local_history_init(struct browser_window *bw, return res; } - ncwin = malloc(sizeof(struct nsgtk_local_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } |