From 4ed03b8dd481c1768c6986a41d97d9de7379b629 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 10 Nov 2009 00:48:24 +0000 Subject: [PATCH] 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 --- contrib/ee/ee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ee/ee.c b/contrib/ee/ee.c index a603756fb51..ae37f65e717 100755 --- a/contrib/ee/ee.c +++ b/contrib/ee/ee.c @@ -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;