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:
parent
d71d6dfd95
commit
4bfd2e9f46
1 changed files with 1 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue