commit c5e17a3223a3d250763c894420468cabe0878c6d
parent 4adef400bf53b7868b902f5b1f2ca465174d5ec9
Author: Andres Navarro <canavarro82@gmail.com>
Date: Wed, 20 Apr 2011 12:02:22 -0300
GC Bugfix: added some initial values to obj, and obj_si prior to calling vars_push. (Thanks Valgrind!).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kread.c b/src/kread.c
@@ -147,9 +147,9 @@ TValue kread_fsm(klisp_State *K)
/* read next token or process obj */
bool read_next_token = true;
/* the obj just read/completed */
- TValue obj;
+ TValue obj = KINERT; /* put some value for gc */
/* the source code information of that obj */
- TValue obj_si;
+ TValue obj_si = KNIL; /* put some value for gc */
krooted_vars_push(K, &obj);
krooted_vars_push(K, &obj_si);