Skip to content

Commit 6ce4c8a

Browse files
committed
Explicitly initialize a member
1 parent 4cb18bd commit 6ce4c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/openPMD/snapshots/ContainerImpls.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class StatefulSnapshotsContainer : public AbstractSnapshotsContainer
3535
* The iterator is resolved upon calling get() below.
3636
*/
3737
std::variant<std::function<StatefulIterator *()>, StatefulIterator *>
38-
m_bufferedIterator;
38+
m_bufferedIterator = static_cast<StatefulIterator *>(nullptr);
3939
};
4040
Members members;
4141

0 commit comments

Comments
 (0)