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…
Reference in New Issue