mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
get rid of a pointless seek() call
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user