summaryrefslogtreecommitdiff
path: root/atari/clipboard.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-19 16:50:42 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-19 16:50:42 +0100
commit69e6fd86b3ab8c79a1f2ea655605f567dda50ea3 (patch)
tree3573dfc0d543e00bd1d515ba70c25431d8acff22 /atari/clipboard.c
parent0629a976ae0dbcb1e48d4d3b6a820ce95bf16e91 (diff)
downloadnetsurf-69e6fd86b3ab8c79a1f2ea655605f567dda50ea3.tar.gz
netsurf-69e6fd86b3ab8c79a1f2ea655605f567dda50ea3.tar.bz2
Socpe reduce two variables.
Diffstat (limited to 'atari/clipboard.c')
-rw-r--r--atari/clipboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atari/clipboard.c b/atari/clipboard.c
index 8c8f71781..d80599e2b 100644
--- a/atari/clipboard.c
+++ b/atari/clipboard.c
@@ -63,14 +63,14 @@ char *scrap_txt_read(void)
{
char * buf = NULL;
char path[80];
- int file;
- int len;
if (get_scrapdir (path))
{
+ int len;
strcat (path, "scrap.txt");
len = filesize(path);
if(len > 0){
+ int file;
if ((file = (int) Fopen (path, 0)) >= 0)
{
buf = malloc(len);