diff options
Diffstat (limited to 'desktop')
-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 abe9e0114..cd19afd16 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -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)) { |