From 9c52fa104bb359d5386d066eb935e6b4b08bd85b Mon Sep 17 00:00:00 2001 From: Matt Spraggs Date: Thu, 1 Oct 2015 21:37:03 +0100 Subject: [PATCH] Hdf5File.cpp: fixed bug in determination of first group name --- lib/Hdf5File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Hdf5File.cpp b/lib/Hdf5File.cpp index d604fa4..322abff 100644 --- a/lib/Hdf5File.cpp +++ b/lib/Hdf5File.cpp @@ -185,6 +185,7 @@ string Hdf5File::getFirstGroupName(void) }; char groupName[maxGroupNameSize]; + groupName[0] = 0; // Need to make sure it's null-terminated h5File_->iterateElems("/", nullptr, firstGroupName, groupName); res = groupName;