diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-19 22:20:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-19 22:20:43 +0000 |
commit | 32cb5394cc495e6986770184cc8cfb5a9c55b19a (patch) | |
tree | 395b9bc400905f0b3d0636be0d744c534cbf7f63 /mandocdb.c | |
parent | 142966235b9ff966583a816928045cbe6b0ecc50 (diff) | |
download | mandoc-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 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandocdb.c,v 1.116 2014/03/19 21:51:20 schwarze Exp $ */ +/* $Id: mandocdb.c,v 1.117 2014/03/19 22:20:43 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -999,7 +999,7 @@ mpages_merge(struct mchars *mc, struct mparse *mp) FORM_CAT != mpage->mlinks->fform) { lvl = mparse_readfd(mp, -1, mpage->mlinks->file); if (lvl < MANDOCLEVEL_FATAL) - mparse_result(mp, &mdoc, &man); + mparse_result(mp, &mdoc, &man, NULL); } if (NULL != mdoc) { |