From e9b036a794fc0b7b453581c4c3e017176213df6c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 13 Aug 2012 17:21:04 +0100 Subject: Fix selection string struct init. --- desktop/selection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'desktop/selection.c') 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; -- cgit v1.2.3