From 3253a1fb8d1c0efcc531855dc243c3f6bd75e7fb Mon Sep 17 00:00:00 2001 From: mikee47 Date: Wed, 11 Oct 2023 15:18:16 +0100 Subject: [PATCH] Fix Spiffs IFS 'uninitialised variable' warning Identified by valgrind running IFS integration tests. --- Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h b/Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h index 9ebbd156bf..18e1685faa 100644 --- a/Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h +++ b/Sming/Libraries/Spiffs/src/include/IFS/SPIFFS/FileSystem.h @@ -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];