diff options
Diffstat (limited to 'src/ambigator.c')
-rw-r--r-- | src/ambigator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ambigator.c b/src/ambigator.c index fe295cf7..018ed186 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -245,6 +245,11 @@ static float corr(struct flist *a, struct flist *b, int *pn, int a_reidx) ia = a->i; } + if ( (a->n == 0) || (b->n == 0) ) { + *pn = 0; + return 0.0; + } + while ( 1 ) { while ( sa[ap] > b->s[bp] ) { |