diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-02-13 22:36:59 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-02-13 22:36:59 +0000 |
commit | 217b0b07917ac5f475a49566515dbb0dd718e9e3 (patch) | |
tree | e65bfbec3cf2523e2b6f8825b457777dae446a66 /usr.bin/mg/file.c | |
parent | 89c154094948ee29b84f3b385e2c0dde6bbeca1f (diff) |
Make mg malloc the l_text element instead of reallocating whole LINE
structures all the time.
Diffstat (limited to 'usr.bin/mg/file.c')
-rw-r--r-- | usr.bin/mg/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 34497e502d8..593d68eeb66 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.10 2002/02/13 03:03:49 vincent Exp $ */ +/* $OpenBSD: file.c,v 1.11 2002/02/13 22:36:58 vincent Exp $ */ /* * File commands. @@ -96,7 +96,7 @@ findbuffer(fname) { BUFFER *bp; char bname[NBUFN]; - unsigned int count = 1; + unsigned int count; for (bp = bheadp; bp != NULL; bp = bp->b_bufp) { if (strcmp(bp->b_fname, fname) == 0) |