From a4dff15c54de303f1543c4575d8af3e2f063b43f 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 (synced from 8378af75640c15082caf8814cf9a8988762eec42) --- src/ox/fs/filestore/filestoretemplate.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/fs/filestore/filestoretemplate.hpp b/src/ox/fs/filestore/filestoretemplate.hpp index 0ad09c022..f7265a79c 100644 --- a/src/ox/fs/filestore/filestoretemplate.hpp +++ b/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;