Socpe reduce two variables.

This commit is contained in:
Michael Drake 2014-05-19 16:50:42 +01:00
parent 0629a976ae
commit 69e6fd86b3

View File

@ -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);