aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/demandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-19 22:20:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-19 22:20:43 +0000
commit32cb5394cc495e6986770184cc8cfb5a9c55b19a (patch)
tree395b9bc400905f0b3d0636be0d744c534cbf7f63 /demandoc.c
parent142966235b9ff966583a816928045cbe6b0ecc50 (diff)
downloadmandoc-32cb5394cc495e6986770184cc8cfb5a9c55b19a.tar.gz
mandoc-32cb5394cc495e6986770184cc8cfb5a9c55b19a.tar.zst
mandoc-32cb5394cc495e6986770184cc8cfb5a9c55b19a.zip
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 'demandoc.c')
-rw-r--r--demandoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demandoc.c b/demandoc.c
index 8ac6f0dc..4a7b979e 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -1,4 +1,4 @@
-/* $Id: demandoc.c,v 1.9 2014/03/19 22:05:10 schwarze Exp $ */
+/* $Id: demandoc.c,v 1.10 2014/03/19 22:20:43 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -110,7 +110,7 @@ pmandoc(struct mparse *mp, int fd, const char *fn, int list)
return;
}
- mparse_result(mp, &mdoc, &man);
+ mparse_result(mp, &mdoc, &man, NULL);
line = 1;
col = 0;