Module Name: src
Committed By: abhinav
Date: Tue Jul 5 16:24:18 UTC 2016
Modified Files:
src/usr.sbin/makemandb: makemandb.c
Log Message:
Reuse variable from previous line.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/makemandb/makemandb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/makemandb/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.37 src/usr.sbin/makemandb/makemandb.c:1.38
--- src/usr.sbin/makemandb/makemandb.c:1.37 Wed Apr 13 11:48:29 2016
+++ src/usr.sbin/makemandb/makemandb.c Tue Jul 5 16:24:18 2016
@@ -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 <[email protected]>
* Copyright (c) 2011 Kristaps Dzonsons <[email protected]>
@@ -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 @@ parse_escape(const char *str)
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);