diff --git a/pd/src/g_array.c b/pd/src/g_array.c
index 25f95040e8a49703edf050c5b8a1b316687ec3ab..1699faef9b6a412bb435fc39eb656c1342ce99d2 100644
--- a/pd/src/g_array.c
+++ b/pd/src/g_array.c
@@ -602,7 +602,7 @@ void garray_arraydialog(t_garray *x, t_symbol *s, int argc, t_atom *argv)
 /* jsarlo { */
 void garray_arrayviewlist_new(t_garray *x)
 {
-    int i, type=0, elemsize=0;
+    int i, type=0, elemsize=0, yonset=0;
     t_float yval;
     char cmdbuf[200];
     t_array *a = garray_getarray_floatonly(x, &yonset, &elemsize);