mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix selection string struct init.
This commit is contained in:
parent
4c945bd16f
commit
e9b036a794
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user