From 8bcfb8bcfffb1a5b3f81dd09f061d452c8508e8a Mon Sep 17 00:00:00 2001 From: "Tareq A. Siraj" Date: Fri, 20 Jul 2012 15:02:52 -0400 Subject: [PATCH] Fixed un-initialized variable warnings These un-initialized variables were being used before initialized. Change-Id: I80c94c5e0c2e959834b99618549377bfb3607272 Author: Tareq A. Siraj --- sh/eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/eval.c b/sh/eval.c index 9acfd6485..4eb7ded6d 100644 --- a/sh/eval.c +++ b/sh/eval.c @@ -687,14 +687,14 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd) struct cmdentry cmdentry; struct job *jp; struct jmploc jmploc; - struct jmploc *volatile savehandler; + struct jmploc *volatile savehandler = 0; char *volatile savecmdname; volatile struct shparam saveparam; struct localvar *volatile savelocalvars; volatile int e; char *lastarg; const char *path = pathval(); - volatile int temp_path; + volatile int temp_path = 0; #if __GNUC__ /* Avoid longjmp clobbering */ (void) &argv;