aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index f5474de6..1ff6d2e6 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -76,7 +76,7 @@ static int image_fom(struct image *image)
mean = (float)integr / n; /* As integer to keep maths fast */
/* Standard deviation */
- integr = 0;
+ fintegr = 0;
for ( x=0; x<1024; x++ ) {
for ( y=600; y<1024; y++ ) {
@@ -123,7 +123,7 @@ static int image_fom(struct image *image)
do {
- int max, max_i;
+ int max, max_i = -1;
int adjacent;
n_nearby = 0;
@@ -256,6 +256,8 @@ int main(int argc, char *argv[])
if ( rval == NULL ) continue;
chomp(line);
+ image.features = NULL;
+
STATUS("Processing '%s'\n", line);
hdfile = hdfile_open(line);