diff options
Diffstat (limited to 'frontends/windows/global_history.c')
-rw-r--r-- | frontends/windows/global_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/windows/global_history.c b/frontends/windows/global_history.c index 0ba013bf0..dcc75ba21 100644 --- a/frontends/windows/global_history.c +++ b/frontends/windows/global_history.c @@ -126,7 +126,7 @@ static nserror nsw32_global_history_init(HINSTANCE hInstance) return NSERROR_OK; } - ncwin = malloc(sizeof(struct nsw32_global_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } |