summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2021-03-08 13:05:48 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2021-03-10 19:18:50 +0000
commit63be7eb52ac2a58b3a00a7c7dff8d701df814cc0 (patch)
tree9b59f80d7fe4e76a3cde3f858a2e1e8940789f5b
parentd1efd55638746ba7b4c5bf294cdc87e141ef5c67 (diff)
downloadillumos-joyent-63be7eb52ac2a58b3a00a7c7dff8d701df814cc0.tar.gz
12302 ksh dumps core while parsing functions
Reviewed by: Paul Winder <paul@winder.uk.net> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Rich Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/contrib/ast/src/cmd/ksh93/sh/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/contrib/ast/src/cmd/ksh93/sh/parse.c b/usr/src/contrib/ast/src/cmd/ksh93/sh/parse.c
index 1d13e6dd94..49289784ea 100644
--- a/usr/src/contrib/ast/src/cmd/ksh93/sh/parse.c
+++ b/usr/src/contrib/ast/src/cmd/ksh93/sh/parse.c
@@ -743,7 +743,7 @@ static Shnode_t *funct(Lex_t *lexp)
register Shnode_t *t;
register int flag;
struct slnod *volatile slp=0;
- Stak_t *savstak;
+ Stak_t *savstak = NULL;
Sfoff_t first, last;
struct functnod *volatile fp;
Sfio_t *iop;