diff options
Diffstat (limited to 'desktop/selection.c')
-rw-r--r-- | desktop/selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 623caf414..93f5cc1a3 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -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; |