Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Remove a redundant set of parentheses that were added...



details:   https://anonhg.NetBSD.org/src/rev/041a5c050bed
branches:  trunk
changeset: 936686:041a5c050bed
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Aug 01 17:56:56 2020 +0000

description:
Remove a redundant set of parentheses that were added (along with a
extra && or || or something ... forgotten now) as part a failed attempt
to fix an earlier bug (later fixed a better way) - when the extra
test (never committed) was removed, the now-redundant parentheses got
forgotten...

NFC.

diffstat:

 bin/sh/expand.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 11d0348b333c -r 041a5c050bed bin/sh/expand.c
--- a/bin/sh/expand.c   Sat Aug 01 17:53:38 2020 +0000
+++ b/bin/sh/expand.c   Sat Aug 01 17:56:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: expand.c,v 1.137 2020/02/13 05:19:05 kre Exp $ */
+/*     $NetBSD: expand.c,v 1.138 2020/08/01 17:56:56 kre Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)expand.c   8.5 (Berkeley) 5/15/95";
 #else
-__RCSID("$NetBSD: expand.c,v 1.137 2020/02/13 05:19:05 kre Exp $");
+__RCSID("$NetBSD: expand.c,v 1.138 2020/08/01 17:56:56 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -309,7 +309,7 @@
                        had_dol_at = 0;
                        break;
                case CTLESC:
-                       if ((quotes || ISCTL(*p)))
+                       if (quotes || ISCTL(*p))
                                STPUTC(c, expdest);
                        c = *p++;
                        STPUTC(c, expdest);



Home | Main Index | Thread Index | Old Index