aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-05-27 17:24:58 +0200
committerThomas White <taw@physics.org>2013-05-27 17:31:46 +0200
commit2977589d2201ade9aa02289a54359288af2ff16e (patch)
treea1ae8d4ff9546618b81bf45cb072f8654254d661 /libcrystfel/src/index.c
parenta1bb441471131ed15e9820576b82b9e3172ab1c0 (diff)
Fix ReAx stack corruption
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index bd187cf5..8307778d 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -214,6 +214,7 @@ static int try_indexer(struct image *image, IndexingMethod indm,
switch ( indm & INDEXING_METHOD_MASK ) {
case INDEXING_NONE :
+ return 0;
break;
case INDEXING_DIRAX :
@@ -229,7 +230,7 @@ static int try_indexer(struct image *image, IndexingMethod indm,
break;
case INDEXING_REAX :
- return reax_index(image, ipriv);
+ return reax_index(ipriv, image);
break;
case INDEXING_GRAINSPOTTER :