Skip to content

Commit 7746c9a

Browse files
Earle F. Philhower, IIIEarle F. Philhower, III
Earle F. Philhower, III
authored and
Earle F. Philhower, III
committed
Invalidate FatCache on creation
FatCache on construction is invalid, of course, so mark it as such.
1 parent e2555d7 commit 7746c9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FatLib/FatVolume.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ union cache_t {
9898
*/
9999
class FatCache {
100100
public:
101+
102+
FatCache() { invalidate(); }
103+
101104
/** Cached block is dirty */
102105
static const uint8_t CACHE_STATUS_DIRTY = 1;
103106
/** Cashed block is FAT entry and must be mirrored in second FAT. */

0 commit comments

Comments
 (0)