From 4bfd2e9f46ddfab452272a7d1f646e87c8108025 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 6 Sep 2008 03:02:30 +0000 Subject: [PATCH] get rid of a pointless seek() call --- libtransmission/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index a3178bb0f..a476a734d 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -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 ); -- 2.40.0