mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix compilation of get_clipboard_text()
This commit is contained in:
parent
f18de1d3f3
commit
0c40ff05c9
@ -353,14 +353,14 @@ get_clipboard_text(void)
|
|||||||
if (is_gnuscreen()) {
|
if (is_gnuscreen()) {
|
||||||
struct string str;
|
struct string str;
|
||||||
|
|
||||||
if (!init_string(&str)) return;
|
if (!init_string(&str)) return NULL;
|
||||||
|
|
||||||
add_to_string(&str, "screen -X paste .");
|
add_to_string(&str, "screen -X paste .");
|
||||||
if (str.length) exe(str.source);
|
if (str.length) exe(str.source);
|
||||||
if (str.source) done_string(&str);
|
if (str.source) done_string(&str);
|
||||||
}
|
}
|
||||||
|
|
||||||
return stracpy(clipboard ? clipboard : "");
|
return stracpy(empty_string_or_(clipboard));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user