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/global_history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontends/riscos/global_history.c') diff --git a/frontends/riscos/global_history.c b/frontends/riscos/global_history.c index 94e1d4a03..d122a4d7f 100644 --- a/frontends/riscos/global_history.c +++ b/frontends/riscos/global_history.c @@ -405,7 +405,7 @@ static nserror ro_global_history_init(void) return NSERROR_OK; } - ncwin = malloc(sizeof(struct ro_global_history_window)); + ncwin = calloc(1, sizeof(*ncwin)); if (ncwin == NULL) { return NSERROR_NOMEM; } -- cgit v1.2.3