diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 17:21:04 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-13 17:21:04 +0100 |
commit | e9b036a794fc0b7b453581c4c3e017176213df6c (patch) | |
tree | f84e829bf63a3f712e23364b2fd54848cb7f0721 | |
parent | 4c945bd16fa496b622cac73790272ea327848718 (diff) | |
download | netsurf-e9b036a794fc0b7b453581c4c3e017176213df6c.tar.gz netsurf-e9b036a794fc0b7b453581c4c3e017176213df6c.tar.bz2 |
Fix selection string struct init.
-rw-r--r-- | desktop/selection.c | 6 |
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; |