mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Ensure selection context is zero-initialised. This may well be the root cause of the random selection crashes people have been seeing.
svn path=/trunk/netsurf/; revision=9679
This commit is contained in:
parent
bc4abe9087
commit
9ca1622183
@ -91,7 +91,7 @@ static struct box *get_box(struct box *b, unsigned offset, size_t *pidx);
|
||||
|
||||
struct selection *selection_create(struct browser_window *bw)
|
||||
{
|
||||
struct selection *s = malloc(sizeof(struct selection));
|
||||
struct selection *s = calloc(1, sizeof(struct selection));
|
||||
if (s) {
|
||||
s->bw = bw;
|
||||
s->root = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user