diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/index.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 028ba5e9..685d0b69 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -163,6 +163,10 @@ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, for ( i=0; i<n; i++ ) { methods[i] = get_indm_from_string(method_strings[i]); + if ( methods[i] == INDEXING_ERROR ) { + free(methods); + return NULL; + } } ipriv = malloc(sizeof(struct _indexingprivate)); |