mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
RISC OS: Ensure core windows are fully initialised.
This commit is contained in:
parent
dfa1e0bcd3
commit
98a73379fe
@ -377,7 +377,7 @@ static nserror ro_cookie_init(void)
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
ncwin = malloc(sizeof(struct ro_cookie_window));
|
||||
ncwin = calloc(1, sizeof(*ncwin));
|
||||
if (ncwin == NULL) {
|
||||
return NSERROR_NOMEM;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ static nserror ro_hotlist_init(void)
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
ncwin = malloc(sizeof(struct ro_hotlist_window));
|
||||
ncwin = calloc(1, sizeof(*ncwin));
|
||||
if (ncwin == NULL) {
|
||||
return NSERROR_NOMEM;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user