summaryrefslogtreecommitdiff
path: root/frontends/riscos/local_history.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-06-11 10:10:25 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2017-06-11 10:10:25 +0100
commit98a73379fec8297c840f592db8c9d2b6aed257bc (patch)
tree3272c169ffb3c2c1b470dd61051bd507768cde88 /frontends/riscos/local_history.c
parentdfa1e0bcd3e48f85214ff2b01909b00454d44d82 (diff)
downloadnetsurf-98a73379fec8297c840f592db8c9d2b6aed257bc.tar.gz
netsurf-98a73379fec8297c840f592db8c9d2b6aed257bc.tar.bz2
RISC OS: Ensure core windows are fully initialised.
Diffstat (limited to 'frontends/riscos/local_history.c')
-rw-r--r--frontends/riscos/local_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/riscos/local_history.c b/frontends/riscos/local_history.c
index 1ae98ff9a..f9f1f2e01 100644
--- a/frontends/riscos/local_history.c
+++ b/frontends/riscos/local_history.c
@@ -299,7 +299,7 @@ ro_local_history_init(struct browser_window *bw,
return res;
}
- ncwin = malloc(sizeof(struct ro_local_history_window));
+ ncwin = calloc(1, sizeof(*ncwin));
if (ncwin == NULL) {
return NSERROR_NOMEM;
}