summaryrefslogtreecommitdiffstats
path: root/c++/src/H5IntType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-07 15:12:43 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-07 15:12:43 (GMT)
commit47a2d5e48f5f3dcfed57c5be01178952030828c2 (patch)
tree1f898bbceea7c656ef4097334e4c96cf171f4940 /c++/src/H5IntType.cpp
parent7f8e7c6d15010bb722d3a18c1f90c03a81b0820b (diff)
downloadhdf5-47a2d5e48f5f3dcfed57c5be01178952030828c2.zip
hdf5-47a2d5e48f5f3dcfed57c5be01178952030828c2.tar.gz
hdf5-47a2d5e48f5f3dcfed57c5be01178952030828c2.tar.bz2
Adding variable initialization
Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5IntType.cpp')
-rw-r--r--c++/src/H5IntType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5IntType.cpp b/c++/src/H5IntType.cpp
index 8408732..ef4e1a9 100644
--- a/c++/src/H5IntType.cpp
+++ b/c++/src/H5IntType.cpp
@@ -135,7 +135,7 @@ IntType::IntType(const H5Location& loc, const H5std_string& dtype_name) : AtomTy
//--------------------------------------------------------------------------
DataType* IntType::decode() const
{
- hid_t encoded_inttype_id;
+ hid_t encoded_inttype_id = H5I_INVALID_HID;
try {
encoded_inttype_id = p_decode();
}