Skip to content

Commit

Permalink
clang-format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guj authored and vicentebolea committed Apr 3, 2024
1 parent adc1d00 commit 59064b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adios2/toolkit/interop/hdf5/HDF5Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ void HDF5Common::ReadStringScalarDataset(hid_t dataSetId, std::string &result)
hid_t d_space = H5Dget_space(dataSetId);
std::vector<char> vc(typesize); // byte buffer to vlen strings
auto status = H5Dread(dataSetId, h5Type, H5S_ALL, H5S_ALL, H5P_DEFAULT, vc.data());
CHECK_H5_RETURN(status, "ReadStringScalar_variable_str");
CHECK_H5_RETURN(status, "ReadStringScalar_variable_str");
result.assign(*((char **)vc.data()));

// free dynamically allocated vlen memory from H5Dread
Expand Down

0 comments on commit 59064b6

Please sign in to comment.