Fix selection string struct init.

This commit is contained in:
Michael Drake 2012-08-13 17:21:04 +01:00
parent 4c945bd16f
commit e9b036a794
1 changed files with 5 additions and 1 deletions

View File

@ -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;