changeset 87:b5785eb3441f

Actually initialize all fields of structure in lw_expr_create()
author lost@l-w.ca
date Wed, 22 Jun 2011 18:39:32 -0600
parents 00ddfdc1e1e3
children 1a1fdfe860d0
files lwlib/lw_expr.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/lw_expr.c	Wed Jun 22 18:32:46 2011 -0600
+++ b/lwlib/lw_expr.c	Wed Jun 22 18:39:32 2011 -0600
@@ -90,7 +90,9 @@
 	
 	r = lw_alloc(sizeof(struct lw_expr_priv));
 	r -> operands = NULL;
-
+	r -> value2 = NULL;
+	r -> type = lw_expr_type_int;
+	r -> value = 0;
 	return r;
 }