1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[clipboard] Without HAVE_ACCESS this fragment does not make sense.

This commit is contained in:
Witold Filipczyk 2020-07-31 14:28:34 +02:00
parent 911155a862
commit e572578765

View File

@ -405,13 +405,13 @@ get_clipboard_text(void)
void
set_clipboard_text(unsigned char *data)
{
#ifdef HAVE_ACCESS
unsigned char *f = get_opt_str("ui.clipboard_file", NULL);
if (f && *f) {
unsigned char *filename = expand_tilde(f);
if (filename) {
#ifdef HAVE_ACCESS
if (access(filename, W_OK) >= 0) {
FILE *out = fopen(filename, "a");
@ -420,10 +420,10 @@ set_clipboard_text(unsigned char *data)
fclose(out);
}
}
#endif
mem_free(filename);
}
}
#endif
/* GNU Screen's clipboard */
if (is_gnuscreen()) {