From 8378af75640c15082caf8814cf9a8988762eec42 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 15 Mar 2018 21:01:26 -0500 Subject: [PATCH] Fix FileStoreData to properly zero out on init --- deps/ox/src/ox/fs/filestore/filestoretemplate.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp b/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp index 0ad09c02..f7265a79 100644 --- a/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp +++ b/deps/ox/src/ox/fs/filestore/filestoretemplate.hpp @@ -45,7 +45,7 @@ class FileStoreTemplate: public FileStore { using Buffer = ox::fs::NodeBuffer>; struct __attribute__((packed)) FileStoreData { - ox::LittleEndian rootNode; + ox::LittleEndian rootNode = 0; }; size_t m_buffSize = 0;