summaryrefslogtreecommitdiff
path: root/frontends/gtk/cookies.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/cookies.c')
-rw-r--r--frontends/gtk/cookies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/cookies.c b/frontends/gtk/cookies.c
index dc77e1c4e..500cd07f6 100644
--- a/frontends/gtk/cookies.c
+++ b/frontends/gtk/cookies.c
@@ -246,7 +246,7 @@ static nserror nsgtk_cookies_init(void)
return NSERROR_OK;
}
- ncwin = malloc(sizeof(struct nsgtk_cookie_window));
+ ncwin = calloc(1, sizeof(*ncwin));
if (ncwin == NULL) {
return NSERROR_NOMEM;
}