ref: 7e4b22f0fb9ceac0b49f9720ae37ff988a31e7bb
parent: 53600d328aef5ee49ce7559152d3cc1aae009228
author: Paul Batchelor <thisispaulbatchelor@gmail.com>
date: Mon Dec 21 08:25:01 EST 2020
ftbl_init: zero out table on init
--- a/modules/ftbl.c
+++ b/modules/ftbl.c
@@ -16,6 +16,7 @@
int sp_ftbl_init(sp_data *sp, sp_ftbl *ft, size_t size)
{
ft->size = size;
+ memset(ft->tbl, 0, sizeof(SPFLOAT) * (size + 1));
return SP_OK;
}