Add a minimal change to prevent NULL deference in ee(1).

To repeat the problem, one can press "Ctrl+C" and then enter "0".

Submitted by:	Alexander Best <alexbestms wwu de>
This commit is contained in:
Xin LI 2009-11-10 00:48:24 +00:00
parent e6bf277eff
commit 4ed03b8dd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199123

View file

@ -1989,7 +1989,7 @@ char *cmd_str;
int number;
int i;
char *ptr;
char *direction = NULL;
char *direction = "d";
struct text *t_line;
ptr = cmd_str;