aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-24 17:08:06 +0200
committerThomas White <taw@physics.org>2014-09-24 17:08:06 +0200
commitd60276646fdf59b1013bfe06ba14bbe7f369e2ab (patch)
tree97cf91acf3157aa6746cfbbc413285f59a4cc377 /libcrystfel
parentf92b47bcd85ff06c386119153270b22d532c897c (diff)
Fussiness
Diffstat (limited to 'libcrystfel')
-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);