summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-13 17:21:04 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-13 17:21:04 +0100
commite9b036a794fc0b7b453581c4c3e017176213df6c (patch)
treef84e829bf63a3f712e23364b2fd54848cb7f0721 /desktop/selection.c
parent4c945bd16fa496b622cac73790272ea327848718 (diff)
downloadnetsurf-e9b036a794fc0b7b453581c4c3e017176213df6c.tar.gz
netsurf-e9b036a794fc0b7b453581c4c3e017176213df6c.tar.bz2
Fix selection string struct init.
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;