summaryrefslogtreecommitdiffstats
path: root/contrib/ee/ee.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-11-10 00:48:24 +0000
committerdelphij <delphij@FreeBSD.org>2009-11-10 00:48:24 +0000
commitf89d1346eb96561274993fd3091efdda2638bdeb (patch)
treea21ae7deacaa1abedf7aedc77dd9abe658312af2 /contrib/ee/ee.c
parente0865281b02715f2c9d9e684ad0dcf7c07a990d5 (diff)
downloadFreeBSD-src-f89d1346eb96561274993fd3091efdda2638bdeb.zip
FreeBSD-src-f89d1346eb96561274993fd3091efdda2638bdeb.tar.gz
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>
Diffstat (limited to 'contrib/ee/ee.c')
-rwxr-xr-xcontrib/ee/ee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ee/ee.c b/contrib/ee/ee.c
index a603756..ae37f65 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;
OpenPOWER on IntegriCloud