summaryrefslogtreecommitdiff
path: root/frontends/gtk/hotlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/hotlist.c')
-rw-r--r--frontends/gtk/hotlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/hotlist.c b/frontends/gtk/hotlist.c
index 34a13772d..936573a0b 100644
--- a/frontends/gtk/hotlist.c
+++ b/frontends/gtk/hotlist.c
@@ -319,7 +319,7 @@ static nserror nsgtk_hotlist_init(void)
return NSERROR_OK;
}
- ncwin = malloc(sizeof(struct nsgtk_hotlist_window));
+ ncwin = calloc(1, sizeof(*ncwin));
if (ncwin == NULL) {
return NSERROR_NOMEM;
}