Skip to content

Commit

Permalink
Fix Spiffs IFS 'uninitialised variable' warning
Browse files Browse the repository at this point in the history
Identified by valgrind running IFS integration tests.
  • Loading branch information
mikee47 committed Oct 11, 2023
1 parent 92667bc commit 7bc025e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class FileSystem : public IFileSystem
Storage::Partition partition;
IProfiler* profiler{nullptr};
SpiffsMetaBuffer metaCache[SPIFF_FILEDESC_COUNT];
spiffs fs;
spiffs fs{};
uint8_t workBuffer[LOG_PAGE_SIZE * 2];
spiffs_fd fileDescriptors[SPIFF_FILEDESC_COUNT];
uint8_t cache[CACHE_SIZE];
Expand Down

0 comments on commit 7bc025e

Please sign in to comment.