mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-08 02:24:41 +03:00
Tolerate NULL selection context in selection_get_copy.
This commit is contained in:
parent
e9b036a794
commit
86f3e70f1a
@ -892,7 +892,7 @@ char * selection_get_copy(struct selection *s)
|
||||
.length = 0
|
||||
};
|
||||
|
||||
if (!s->defined)
|
||||
if (s == NULL || !s->defined)
|
||||
return NULL;
|
||||
|
||||
if (!selection_traverse(s, selection_copy_handler, &sel_string)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user