summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/selection.c')
-rw-r--r--desktop/selection.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index 860d4e482..abe9e0114 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -886,7 +886,11 @@ static bool selection_copy_handler(const char *text, size_t length,
char * selection_get_copy(struct selection *s)
{
- struct selection_string sel_string;
+ struct selection_string sel_string = {
+ .buffer = NULL,
+ .buffer_len = 0,
+ .length = 0
+ };
if (!s->defined)
return NULL;