From e996e953c857c0b47d0e7a9b26d8be8f09585cf9 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 7 Jul 2014 06:59:41 +0000 Subject: [PATCH] sys: fix unititialised class member in File. --- src/sys/file.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sys/file.cpp b/src/sys/file.cpp index c97b9f96..d62a61be 100644 --- a/src/sys/file.cpp +++ b/src/sys/file.cpp @@ -44,7 +44,10 @@ class FileData { friend class File; - FileData() : m_type(StreamType::File) { } + FileData() + : m_refcount(0), + m_type(StreamType::File) + { } void Open(StreamType stream) {