aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index eb304a76..476fd3fc 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -402,14 +402,14 @@ int hdf5_write_image(const char *filename, struct image *image, char *element)
return 1;
}
- if ( element != NULL) {
+ if ( element != NULL ) {
default_location = strdup(element);
} else {
default_location = strdup("/data/data");
}
locations = malloc(sizeof(struct hdf5_write_location));
- if ( locations == NULL ) {
+ if ( locations == NULL ) {
ERROR("Couldn't create write location list for file: %s\n",
filename);
return 1;
@@ -468,7 +468,7 @@ int hdf5_write_image(const char *filename, struct image *image, char *element)
}
}
- if ( panel_processed == 0) {
+ if ( !panel_processed ) {
struct hdf5_write_location *new_locations;
new_locations = realloc(locations,
@@ -596,7 +596,7 @@ int hdf5_write_image(const char *filename, struct image *image, char *element)
H5S_SELECT_SET,
f_offset, NULL,
f_count, NULL);
- if ( check <0 ) {
+ if ( check < 0 ) {
ERROR("Error selecting file dataspace "
"for panel %s\n", p.name);
free(group);