summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 15:42:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-10-08 15:42:29 +0000
commitffa20eb3a09b80161daf8d512f06c949ad6e196f (patch)
treeb16016ae9e6a952b41b0b05c39375025854e1ba7
parentbd58102dc13c95357cb31bc7b9b752ba05673533 (diff)
downloadmandoc-ffa20eb3a09b80161daf8d512f06c949ad6e196f.tar.gz
Critical fix in the new -Tman lookaside buffer code. Gah..VERSION.1.12.0
-rw-r--r--read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.c b/read.c
index 29ee4682..d97c944b 100644
--- a/read.c
+++ b/read.c
@@ -464,7 +464,8 @@ rerun:
* buffer because we're going to descend into
* the file recursively.
*/
- curp->secondary->sz -= pos + 1;
+ if (curp->secondary)
+ curp->secondary->sz -= pos + 1;
mparse_readfd_r(curp, -1, ln.buf + of, 1);
if (MANDOCLEVEL_FATAL <= curp->file_status)
break;