diff options
Diffstat (limited to 'frontends/riscos/global_history.c')
-rw-r--r-- | frontends/riscos/global_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |