From c2f1e494c256f8ee9f2f7a4398c324ac2db84d51 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 23 Mar 2011 18:12:22 +0100 Subject: Fix previous commit --- src/hdf5-file.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3