summaryrefslogtreecommitdiff
path: root/firmware/common/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/file.c')
-rw-r--r--firmware/common/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 7f0e0cd9bd..219858cff2 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -386,6 +386,8 @@ int lseek(int fd, int offset, int whence)
386 } 386 }
387 openfiles[fd].cacheoffset = sectoroffset; 387 openfiles[fd].cacheoffset = sectoroffset;
388 } 388 }
389 else
390 openfiles[fd].cacheoffset = -1;
389 } 391 }
390 else 392 else
391 if ( openfiles[fd].cacheoffset != -1 ) 393 if ( openfiles[fd].cacheoffset != -1 )