Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Fix botched logic; PR 51191 from David Binderman.



details:   https://anonhg.NetBSD.org/src/rev/b82bb1c2008d
branches:  trunk
changeset: 816315:b82bb1c2008d
user:      dholland <dholland%NetBSD.org@localhost>
date:      Thu Jun 30 05:28:23 2016 +0000

description:
Fix botched logic; PR 51191 from David Binderman.

diffstat:

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

diffs (35 lines):

diff -r 4274fe516f22 -r b82bb1c2008d usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Thu Jun 30 04:12:36 2016 +0000
+++ b/usr.bin/make/suff.c       Thu Jun 30 05:28:23 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.81 2016/03/15 18:30:14 matthias Exp $       */
+/*     $NetBSD: suff.c,v 1.82 2016/06/30 05:28:23 dholland Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: suff.c,v 1.81 2016/03/15 18:30:14 matthias Exp $";
+static char rcsid[] = "$NetBSD: suff.c,v 1.82 2016/06/30 05:28:23 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)suff.c     8.4 (Berkeley) 3/21/94";
 #else
-__RCSID("$NetBSD: suff.c,v 1.81 2016/03/15 18:30:14 matthias Exp $");
+__RCSID("$NetBSD: suff.c,v 1.82 2016/06/30 05:28:23 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1616,7 +1616,7 @@
                    }
 
                    free(freeIt);
-               } else if (*cp == '\\' && *cp != '\0') {
+               } else if (*cp == '\\' && cp[1] != '\0') {
                    /*
                     * Escaped something -- skip over it
                     */



Home | Main Index | Thread Index | Old Index