summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-03-19 22:20:37 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-03-19 22:20:37 +0000
commitb218ffe84043e9518f85ecc1cc5d7c5cc50ebc87 (patch)
tree861bbd0361286cd361c7a991ce561749dc6fa4df /usr.bin/mandoc/main.c
parent6804cc5abb795c1c223e3529b538c92745486a52 (diff)
Without the MPARSE_SO option, if the file contains nothing but a
single .so request, do not read the file pointed to, but instead let mparse_result() provide the file name pointed to as a return value. To be used by makewhatis(8) in the future.
Diffstat (limited to 'usr.bin/mandoc/main.c')
-rw-r--r--usr.bin/mandoc/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/main.c b/usr.bin/mandoc/main.c
index 5e0e4c740f2..1a1c7f9818c 100644
--- a/usr.bin/mandoc/main.c
+++ b/usr.bin/mandoc/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.87 2014/03/19 21:50:59 schwarze Exp $ */
+/* $Id: main.c,v 1.88 2014/03/19 22:20:36 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -295,7 +295,7 @@ parse(struct curparse *curp, int fd,
}
}
- mparse_result(curp->mp, &mdoc, &man);
+ mparse_result(curp->mp, &mdoc, &man, NULL);
/* Execute the out device, if it exists. */