diff options
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index b9de9540..da4a5a31 100644 --- a/src/index.c +++ b/src/index.c @@ -116,10 +116,12 @@ void cleanup_indexing(IndexingPrivate **priv) void map_all_peaks(struct image *image) { - int i; + int i, n; + + n = image_feature_count(image->features); /* Map positions to 3D */ - for ( i=0; i<image_feature_count(image->features); i++ ) { + for ( i=0; i<n; i++ ) { struct imagefeature *f; struct rvec r; |