Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/sed Back out the pr fix. It doesn't work.



details:   https://anonhg.NetBSD.org/src/rev/4ab3bea20dc5
branches:  trunk
changeset: 515567:4ab3bea20dc5
user:      atatat <atatat%NetBSD.org@localhost>
date:      Fri Sep 28 21:10:34 2001 +0000

description:
Back out the pr fix.  It doesn't work.

diffstat:

 usr.bin/sed/process.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 3bd1bf226cc0 -r 4ab3bea20dc5 usr.bin/sed/process.c
--- a/usr.bin/sed/process.c     Fri Sep 28 20:36:46 2001 +0000
+++ b/usr.bin/sed/process.c     Fri Sep 28 21:10:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process.c,v 1.27 2001/09/27 05:35:44 atatat Exp $      */
+/*     $NetBSD: process.c,v 1.28 2001/09/28 21:10:34 atatat Exp $      */
 
 /*-
  * Copyright (c) 1992 Diomidis Spinellis.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)process.c  8.6 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: process.c,v 1.27 2001/09/27 05:35:44 atatat Exp $");
+__RCSID("$NetBSD: process.c,v 1.28 2001/09/28 21:10:34 atatat Exp $");
 #endif
 #endif /* not lint */
 
@@ -142,11 +142,11 @@
                                if ((p = memchr(ps, '\n', psl - 1)) == NULL) {
                                        pd = 1;
                                        goto new;
-                               } else if (psl != 0) {
+                               } else {
                                        psl -= (p + 1) - ps;
                                        memmove(ps, p + 1, psl);
+                                       goto top;
                                }
-                               goto top;
                        case 'g':
                                cspace(&PS, hs, hsl, REPLACE);
                                break;



Home | Main Index | Thread Index | Old Index