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 last patch (again). This patch seems t...



details:   https://anonhg.NetBSD.org/src/rev/0c978cfb3251
branches:  trunk
changeset: 515688:0c978cfb3251
user:      atatat <atatat%NetBSD.org@localhost>
date:      Tue Oct 02 03:03:02 2001 +0000

description:
Back out last patch (again).  This patch seems to satisfy test suites
that I've found, while the previous one did not.

diffstat:

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

diffs (31 lines):

diff -r f640b9d77a61 -r 0c978cfb3251 usr.bin/sed/process.c
--- a/usr.bin/sed/process.c     Tue Oct 02 03:02:10 2001 +0000
+++ b/usr.bin/sed/process.c     Tue Oct 02 03:03:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process.c,v 1.29 2001/09/28 21:12:04 atatat Exp $      */
+/*     $NetBSD: process.c,v 1.30 2001/10/02 03:03:02 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.29 2001/09/28 21:12:04 atatat Exp $");
+__RCSID("$NetBSD: process.c,v 1.30 2001/10/02 03:03:02 atatat Exp $");
 #endif
 #endif /* not lint */
 
@@ -137,10 +137,10 @@
                                pd = 1;
                                goto new;
                        case 'D':
+                               if (psl == 0)
+                                       pd = 1;
                                if (pd)
                                        goto new;
-                               if (psl == 0)
-                                       break;
                                if ((p = memchr(ps, '\n', psl - 1)) == NULL) {
                                        pd = 1;
                                        goto new;



Home | Main Index | Thread Index | Old Index