1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

get rid of a pointless seek() call

This commit is contained in:
Charles Kerr 2008-09-06 03:02:30 +00:00
parent d71d6dfd95
commit 4bfd2e9f46

View file

@ -407,12 +407,11 @@ tr_loadFile( const char * path, size_t * size )
fclose( file );
return NULL;
}
fseek( file, 0, SEEK_SET );
if( fread( buf, sb.st_size, 1, file ) != 1 )
{
tr_err( err_fmt, path, tr_strerror(errno) );
free( buf );
fclose( file );
free( buf );
return NULL;
}
fclose( file );