summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2002-09-20 19:40:23 +0000
committereric <eric@FreeBSD.org>2002-09-20 19:40:23 +0000
commit97eee3cd78824fb2464c1ed47e4e460da5073c2d (patch)
tree9ce42a260c93bafafebe49d49b25b6a4e4f3a198 /usr.bin/sed
parent57a346a21312d7f99ca28aee15ab6091be10cbd7 (diff)
downloadFreeBSD-src-97eee3cd78824fb2464c1ed47e4e460da5073c2d.zip
FreeBSD-src-97eee3cd78824fb2464c1ed47e4e460da5073c2d.tar.gz
Initialize a variable in order to fix when faced with picky compilers.
Sponsored by: Apple
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 94c24e9..da9c7c5 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -96,6 +96,8 @@ process()
size_t len, oldpsl = 0;
char *p;
+ p = NULL;
+
for (linenum = 0; mf_fgets(&PS, REPLACE);) {
pd = 0;
top:
OpenPOWER on IntegriCloud