diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-10-08 15:42:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-10-08 15:42:29 +0000 |
commit | 71f5ce8425a71bda76e58528928628fbf91ca05d (patch) | |
tree | 56a27233641c4c2fdf414d80a573200e108dba1d | |
parent | b0b3104013188af62eb5e1a335929d7adc9eff92 (diff) | |
download | mandoc-71f5ce8425a71bda76e58528928628fbf91ca05d.tar.gz mandoc-71f5ce8425a71bda76e58528928628fbf91ca05d.tar.zst mandoc-71f5ce8425a71bda76e58528928628fbf91ca05d.zip |
Critical fix in the new -Tman lookaside buffer code. Gah..VERSION_1_12_0
-rw-r--r-- | read.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.24 2011/10/06 22:29:12 kristaps Exp $ */ +/* $Id: read.c,v 1.25 2011/10/08 15:42:29 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |