summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2015-02-26 20:59:18 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2015-02-26 20:59:18 +0000
commit362e1f078fadaff7a84bbeebc90b227eee19ecfc (patch)
tree158b6d18595ae8e851e67638aba81ddc6330d365 /bin/sh/expand.c
parent0a6344ff1a676002fbbbeb881cb7541448dd19b7 (diff)
downloadFreeBSD-src-362e1f078fadaff7a84bbeebc90b227eee19ecfc.zip
FreeBSD-src-362e1f078fadaff7a84bbeebc90b227eee19ecfc.tar.gz
Fix unitialized variable that broke sh on PowerPC starting with r278826.
Diffstat (limited to 'bin/sh/expand.c')
-rw-r--r--bin/sh/expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c
index e1c1a2e..193d651 100644
--- a/bin/sh/expand.c
+++ b/bin/sh/expand.c
@@ -635,7 +635,7 @@ evalvar(char *p, int flag)
int varlenb;
int easy;
int quotes = flag & (EXP_FULL | EXP_CASE);
- int record;
+ int record = 0;
varflags = (unsigned char)*p++;
subtype = varflags & VSTYPE;
OpenPOWER on IntegriCloud