mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-25 15:59:36 +03:00
fix use of uninitialised warning on older gcc
This commit is contained in:
parent
fe429e8d2d
commit
dbe63210cf
@ -1592,10 +1592,12 @@ textplain_textselection_copy(struct content *c,
|
||||
{
|
||||
const char *text;
|
||||
size_t length;
|
||||
bool res;
|
||||
bool res = false;
|
||||
|
||||
text = textplain_get_raw_data(c, start_idx, end_idx, &length);
|
||||
if (text != NULL) {
|
||||
res = selection_string_append(text, length, false, NULL, selstr);
|
||||
}
|
||||
if (res == false) {
|
||||
return NSERROR_NOMEM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user