diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 10:12:50 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-11 10:12:50 +0100 |
commit | 38c10c85cbfbc47eaaf64a58fb50d60e136af673 (patch) | |
tree | 7bf536ce1e0142396f80ce208e74b93da67f0653 /frontends/windows/local_history.c | |
parent | 98a73379fec8297c840f592db8c9d2b6aed257bc (diff) | |
download | netsurf-38c10c85cbfbc47eaaf64a58fb50d60e136af673.tar.gz netsurf-38c10c85cbfbc47eaaf64a58fb50d60e136af673.tar.bz2 |
Windows: Ensure core windows are fully initialised.
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; } |