summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-07 05:33:39 +0000
committerarchie <archie@FreeBSD.org>1998-12-07 05:33:39 +0000
commit5fa68e57c09b226cc9be538b36c4c52b94b7ab4e (patch)
tree282d3ac3c62258a956ef6defe21e381c3999e14b /usr.bin/sed
parent5af7338a8edcd90a3d96e0a817ab2f6fb56fd64a (diff)
downloadFreeBSD-src-5fa68e57c09b226cc9be538b36c4c52b94b7ab4e.zip
FreeBSD-src-5fa68e57c09b226cc9be538b36c4c52b94b7ab4e.tar.gz
Compile -Wall
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/Makefile1
-rw-r--r--usr.bin/sed/process.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sed/Makefile b/usr.bin/sed/Makefile
index 99f860b..d6b13a2 100644
--- a/usr.bin/sed/Makefile
+++ b/usr.bin/sed/Makefile
@@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= sed
+CFLAGS+=-Wall
SRCS= compile.c main.c misc.c process.c
.include <bsd.prog.mk>
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 18bf515..535405a 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -40,7 +40,7 @@
static char sccsid[] = "@(#)process.c 8.6 (Berkeley) 4/20/94";
#endif
static const char rcsid[] =
- "$Id: process.c,v 1.6 1997/08/11 07:21:06 charnier Exp $";
+ "$Id: process.c,v 1.7 1998/04/29 21:58:36 ache Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -94,7 +94,7 @@ process()
{
struct s_command *cp;
SPACE tspace;
- size_t len, oldpsl;
+ size_t len, oldpsl = 0;
char *p;
for (linenum = 0; mf_fgets(&PS, REPLACE);) {
OpenPOWER on IntegriCloud