summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2011-01-31 16:05:17 +0100
committerJose <jose@zeroc.com>2011-01-31 16:05:17 +0100
commitbb9dacfad0eed3dc8d6382bc7e41ed9ac8ac5500 (patch)
tree9e373b6c979323e4017bd42febf7d09120b83c25 /cpp
parent4893 - NullHandleException in Glacier2::Application (diff)
downloadice-bb9dacfad0eed3dc8d6382bc7e41ed9ac8ac5500.tar.bz2
ice-bb9dacfad0eed3dc8d6382bc7e41ed9ac8ac5500.tar.xz
ice-bb9dacfad0eed3dc8d6382bc7e41ed9ac8ac5500.zip
4975 - Uninitialized _fd on FileUtil.cpp
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/IceUtil/FileUtil.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp
index 5dbb88d20df..2e0e5ff3102 100644
--- a/cpp/src/IceUtil/FileUtil.cpp
+++ b/cpp/src/IceUtil/FileUtil.cpp
@@ -251,6 +251,9 @@ toFileFlags(ios_base::openmode mode)
#endif
IceUtilInternal::ifstream::ifstream()
+#ifdef _STLP_BEGIN_NAMESPACE
+ : _fd(-1)
+#endif
{
}
@@ -309,6 +312,9 @@ IceUtilInternal::ifstream::open(const string& path, ios_base::openmode mode)
#endif
IceUtilInternal::ofstream::ofstream()
+#ifdef _STLP_BEGIN_NAMESPACE
+ : _fd(-1)
+#endif
{
}