diff options
Diffstat (limited to 'frontends/windows/local_history.c')
-rw-r--r-- | frontends/windows/local_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/windows/local_history.c b/frontends/windows/local_history.c index 205ebfe94..722d365e7 100644 --- a/frontends/windows/local_history.c +++ b/frontends/windows/local_history.c @@ -143,7 +143,7 @@ nsw32_local_history_init(HINSTANCE hInstance, return res; } - ncwin = malloc(sizeof(struct nsw32_local_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } |