diff options
author | delphij <delphij@FreeBSD.org> | 2009-11-10 00:48:24 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-11-10 00:48:24 +0000 |
commit | f89d1346eb96561274993fd3091efdda2638bdeb (patch) | |
tree | a21ae7deacaa1abedf7aedc77dd9abe658312af2 /contrib/ee/ee.c | |
parent | e0865281b02715f2c9d9e684ad0dcf7c07a990d5 (diff) | |
download | FreeBSD-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-x | contrib/ee/ee.c | 2 |
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; |