diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-09-07 15:12:43 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-09-07 15:12:43 (GMT) |
commit | 47a2d5e48f5f3dcfed57c5be01178952030828c2 (patch) | |
tree | 1f898bbceea7c656ef4097334e4c96cf171f4940 /c++/src/H5EnumType.cpp | |
parent | 7f8e7c6d15010bb722d3a18c1f90c03a81b0820b (diff) | |
download | hdf5-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/H5EnumType.cpp')
-rw-r--r-- | c++/src/H5EnumType.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c++/src/H5EnumType.cpp b/c++/src/H5EnumType.cpp index f9046be..02ae5a3 100644 --- a/c++/src/H5EnumType.cpp +++ b/c++/src/H5EnumType.cpp @@ -154,16 +154,16 @@ EnumType::EnumType(const H5Location& loc, const H5std_string& dtype_name) : Data //-------------------------------------------------------------------------- DataType* EnumType::decode() const { - hid_t encoded_cmptype_id; + hid_t encoded_enumtype_id = H5I_INVALID_HID; try { - encoded_cmptype_id = p_decode(); + encoded_enumtype_id = p_decode(); } catch (DataTypeIException &err) { throw; } - EnumType *encoded_cmptype = new EnumType; - encoded_cmptype->p_setId(encoded_cmptype_id); - return(encoded_cmptype); + EnumType *encoded_enumtype = new EnumType; + encoded_enumtype->p_setId(encoded_enumtype_id); + return(encoded_enumtype); } //-------------------------------------------------------------------------- |