Added dimensions check to vector_avg

This commit is contained in:
Andrew Kane
2023-05-12 17:19:16 -07:00
parent 8f589f6d09
commit 53301021f6
3 changed files with 4 additions and 0 deletions

View File

@@ -950,6 +950,7 @@ vector_avg(PG_FUNCTION_ARGS)
/* Create vector */
dim = STATE_DIMS(statearray);
CheckDim(dim);
result = InitVector(dim);
for (int i = 0; i < dim; i++)
{