CID 703478: probably can’t happen, but…

This commit is contained in:
tg 2012-06-24 20:15:47 +00:00
parent 10aa532414
commit b3b3aec17e
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#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 */