summaryrefslogtreecommitdiff
path: root/frontends/gtk/global_history.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/global_history.c')
-rw-r--r--frontends/gtk/global_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/global_history.c b/frontends/gtk/global_history.c
index 66ba1a666..360eb4e1a 100644
--- a/frontends/gtk/global_history.c
+++ b/frontends/gtk/global_history.c
@@ -299,7 +299,7 @@ static nserror nsgtk_global_history_init(void)
return NSERROR_OK;
}
- ncwin = malloc(sizeof(struct nsgtk_global_history_window));
+ ncwin = calloc(1, sizeof(*ncwin));
if (ncwin == NULL) {
return NSERROR_NOMEM;
}