aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/mosflm.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-18 16:53:52 +0100
committerThomas White <taw@physics.org>2018-01-19 10:48:51 +0100
commit555a6e10a85734fa30bafa8ffada4add91c611e0 (patch)
treead36a69a7f3c330b1d9c9c8e2aa6e40f2b20bab6 /libcrystfel/src/mosflm.c
parent5e33ce8a33c0e4b69adef9bdfc31aec3d2b5593b (diff)
Clean up indexing method probes
Diffstat (limited to 'libcrystfel/src/mosflm.c')
-rw-r--r--libcrystfel/src/mosflm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c
index 7ebf6e19..e59cf4e2 100644
--- a/libcrystfel/src/mosflm.c
+++ b/libcrystfel/src/mosflm.c
@@ -896,9 +896,7 @@ const char *mosflm_probe(UnitCell *cell)
for ( l=0; l<10; l++ ) {
char *pos;
- if ( fgets(line, 1024, fh) == NULL ) {
- ERROR("Failed to probe for Mosflm\n");
- } else {
+ if ( fgets(line, 1024, fh) != NULL ) {
pos = strstr(line, "Mosflm version ");
if ( pos != NULL ) {
char *vers = pos+15;