Skip to content
Snippets Groups Projects
Commit 14cc482e authored by David Fairbrother's avatar David Fairbrother
Browse files

Fix cppcheck warnings introduced into master

parent 18672c61
No related branches found
No related tags found
No related merge requests found
......@@ -28,15 +28,12 @@ namespace {
*/
herr_t readStringAttribute(hid_t attr, char **data) {
herr_t iRet = 0;
hid_t atype = -1;
hid_t space;
int ndims;
hsize_t thedims[H5S_MAX_RANK], sdim;
atype = H5Aget_type(attr);
sdim = H5Tget_size(atype);
space = H5Aget_space(attr);
ndims = H5Sget_simple_extent_dims(space, thedims, NULL);
hsize_t thedims[H5S_MAX_RANK];
hid_t atype = H5Aget_type(attr);
hsize_t sdim = H5Tget_size(atype);
hid_t space = H5Aget_space(attr);
int ndims = H5Sget_simple_extent_dims(space, thedims, NULL);
if (ndims == 0) {
if (H5Tis_variable_str(atype)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment