From b3b3aec17ebd431dc600a20f9a36e1e9f6b1dfea Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 24 Jun 2012 20:15:47 +0000 Subject: [PATCH] =?UTF-8?q?CID=20703478:=20probably=20can=E2=80=99t=20happ?= =?UTF-8?q?en,=20but=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 62a3240..3ebbbfd 100644 --- a/main.c +++ b/main.c @@ -34,7 +34,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.222 2012/05/05 17:32:33 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.223 2012/06/24 20:15:47 tg Exp $"); extern char **environ; @@ -623,7 +623,7 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp) } Flag(FERREXIT) = errexit; - if (Flag(FTALKING)) + if (Flag(FTALKING) && s) hist_init(s); else /* set after ENV */