diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 94c24e9f0352..da9c7c544e60 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: