aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_kann.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_kann.c b/src/lua/lua_kann.c
index 609f05539..e356f5912 100644
--- a/src/lua/lua_kann.c
+++ b/src/lua/lua_kann.c
@@ -1067,8 +1067,8 @@ lua_kann_train1 (lua_State *L)
float **x, **y;
/* Fill vectors */
- x = (float **)g_malloc (sizeof (float *) * n);
- y = (float **)g_malloc (sizeof (float *) * n);
+ x = (float **)g_malloc0 (sizeof (float *) * n);
+ y = (float **)g_malloc0 (sizeof (float *) * n);
for (int s = 0; s < n; s ++) {
/* Inputs */