aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-11 17:51:03 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:19 +0100
commit38ab00ccb6869318f1a12a96443fa6c23de1f6e7 (patch)
tree096d834513a8d61a4e6e94b93086e052c37ccbf5 /src/index.c
parent5c198c0e6812f55be6283e12af0b09100edb38bf (diff)
First part of stream rework
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index 554c099d..ddb25eb4 100644
--- a/src/index.c
+++ b/src/index.c
@@ -128,6 +128,8 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
int i;
int n = 0;
+ if ( indm == NULL ) return;
+
map_all_peaks(image);
while ( indm[n] != INDEXING_NONE ) {