From 885e02de86fd854e37578762f92543d8b0a6c7b6 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Sat, 7 Nov 2009 11:13:05 +0200 Subject: [PATCH] Initialize values properly. Signed-off-by: Dan Carpenter --- smatch_extra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_extra.c b/smatch_extra.c index 2e46eb78..e4c56b93 100644 --- a/smatch_extra.c +++ b/smatch_extra.c @@ -204,7 +204,7 @@ void __extra_pre_loop_hook_after(struct sm_state *sm, char *name; struct symbol *sym; long long value; - int left; + int left = 0; const char *op; struct smatch_state *state; struct data_info *dinfo; @@ -405,7 +405,7 @@ static void match_comparison(struct expression *expr) struct smatch_state *one_state; struct smatch_state *two_state; struct smatch_state *orig; - int left; + int left = 0; int comparison = expr->op; value = get_value(expr->left); -- 2.11.4.GIT