aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hdf5-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 5cd7c3ce..2979926f 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -333,8 +333,6 @@ static void debodge_saturation(struct hdfile *f, struct image *image)
}
if ( H5Sget_simple_extent_ndims(sh) != 2 ) {
- ERROR("Saturation table has the wrong dimensionality (%i).\n",
- H5Sget_simple_extent_ndims(sh));
H5Sclose(sh);
H5Dclose(dh);
return;
@@ -345,6 +343,7 @@ static void debodge_saturation(struct hdfile *f, struct image *image)
if ( size[1] != 3 ) {
H5Sclose(sh);
H5Dclose(dh);
+ ERROR("Saturation table has the wrong dimensions.\n");
return;
}