aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-23 18:12:22 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commitc2f1e494c256f8ee9f2f7a4398c324ac2db84d51 (patch)
treeac9c3dad39c3cf7a4280424f09066223d966558f
parent6102cc44e44f25dac0b7798ed66f48fe9c59198a (diff)
Fix previous commit
-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;
}