mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-29 05:36:58 +02:00
stats: Fix crash on variance
with single-column statistics
When doing the sum, we were setting the result as a null pointer, and collapsing all later results as a consequence. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
41ddcae6b6
commit
c7be6b14ec
1 changed files with 1 additions and 1 deletions
|
@ -824,7 +824,7 @@ algebraic_p StatsAccess::total(sxy_fn op, algebraic_r arg) const
|
|||
}
|
||||
row = +arow;
|
||||
}
|
||||
else
|
||||
else if (result)
|
||||
{
|
||||
row = op(result, row, arg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue