Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makemandb Reuse variable from previous line.



details:   https://anonhg.NetBSD.org/src/rev/9ecc7015c6ee
branches:  trunk
changeset: 346291:9ecc7015c6ee
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Tue Jul 05 16:24:18 2016 +0000

description:
Reuse variable from previous line.

diffstat:

 usr.sbin/makemandb/makemandb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 86b378cdfb15 -r 9ecc7015c6ee usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Tue Jul 05 10:04:17 2016 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Tue Jul 05 16:24:18 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.37 2016/04/13 11:48:29 christos Exp $  */
+/*     $NetBSD: makemandb.c,v 1.38 2016/07/05 16:24:18 abhinav Exp $   */
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.37 2016/04/13 11:48:29 christos Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.38 2016/07/05 16:24:18 abhinav Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -2103,7 +2103,7 @@
                if (backslash[1] == '-' || backslash[1] == ' ') {
                        *iter++ = backslash[1];
                        last_backslash = backslash + 2;
-                       backslash = strchr(backslash + 2, '\\');
+                       backslash = strchr(last_backslash, '\\');
                } else {
                        ++backslash;
                        mandoc_escape(&backslash, NULL, NULL);



Home | Main Index | Thread Index | Old Index