summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 6f6873b..694a772 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1200,7 +1200,7 @@ int fat_readwrite( struct fat_file *file, int sectorcount,
int fat_seek(struct fat_file *file, int seeksector )
{
- int clusternum, sectornum, sector;
+ int clusternum, sectornum, sector=0;
int cluster = file->firstcluster;
int i;