summaryrefslogtreecommitdiffstats
path: root/c++/src/H5StrType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5StrType.cpp')
-rw-r--r--c++/src/H5StrType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5StrType.cpp b/c++/src/H5StrType.cpp
index cbb2103..d2d87e9 100644
--- a/c++/src/H5StrType.cpp
+++ b/c++/src/H5StrType.cpp
@@ -189,7 +189,7 @@ StrType::StrType(const H5Location& loc, const H5std_string& dtype_name) : AtomTy
//--------------------------------------------------------------------------
DataType* StrType::decode() const
{
- hid_t encoded_strtype_id;
+ hid_t encoded_strtype_id = H5I_INVALID_HID;
try {
encoded_strtype_id = p_decode();
}