aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-21 14:13:48 +0200
committerThomas White <taw@physics.org>2021-07-21 15:34:33 +0200
commitdab8efaff83c59ddd4d33cecd577bf2aa592eb25 (patch)
tree82416a0b1413107bb24660d4080f4536ebbd36ca
parentbbf2e57671f8f833689b845d5dc402569183d6d0 (diff)
image_hdf5_read_peaks_cxi: Fix error checks
-rw-r--r--libcrystfel/src/image-hdf5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c
index 9cad0a33..494254cc 100644
--- a/libcrystfel/src/image-hdf5.c
+++ b/libcrystfel/src/image-hdf5.c
@@ -1283,19 +1283,19 @@ ImageFeatureList *image_hdf5_read_peaks_cxi(const DataTemplate *dtempl,
}
buf_x = read_peak_line(fh, path_x, line);
- if ( r != 0 ) {
+ if ( buf_x == NULL ) {
close_hdf5(fh);
return NULL;
}
buf_y = read_peak_line(fh, path_y, line);
- if ( r != 0 ) {
+ if ( buf_y == NULL ) {
close_hdf5(fh);
return NULL;
}
buf_i = read_peak_line(fh, path_i, line);
- if ( r != 0 ) {
+ if ( buf_i == NULL ) {
close_hdf5(fh);
return NULL;
}