From 98a73379fec8297c840f592db8c9d2b6aed257bc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 11 Jun 2017 10:10:25 +0100 Subject: RISC OS: Ensure core windows are fully initialised. --- frontends/riscos/local_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/riscos/local_history.c') 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; } -- cgit v1.2.3