summaryrefslogtreecommitdiffstats
path: root/sh
diff options
context:
space:
mode:
authorTareq A. Siraj <tareq.a.siraj@intel.com>2012-07-20 15:02:52 -0400
committerEdwin Vane <edwin.vane@intel.com>2012-08-01 15:15:11 -0400
commit8bcfb8bcfffb1a5b3f81dd09f061d452c8508e8a (patch)
tree1dab33980d8b2ff82f66670c25171473ad27a0dd /sh
parentce76e2d00e63339083ea693db33de05cbba5600e (diff)
downloadsystem_core-8bcfb8bcfffb1a5b3f81dd09f061d452c8508e8a.zip
system_core-8bcfb8bcfffb1a5b3f81dd09f061d452c8508e8a.tar.gz
system_core-8bcfb8bcfffb1a5b3f81dd09f061d452c8508e8a.tar.bz2
Fixed un-initialized variable warnings
These un-initialized variables were being used before initialized. Change-Id: I80c94c5e0c2e959834b99618549377bfb3607272 Author: Tareq A. Siraj <tareq.a.siraj@intel.com>
Diffstat (limited to 'sh')
-rw-r--r--sh/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/eval.c b/sh/eval.c
index 9acfd64..4eb7ded 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;