summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 15:27:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 15:27:11 +0000
commit3a90e7272d1daf578ea1c9df7b71ac934a5f8f33 (patch)
tree47e5a6142db18cbcc6d40b8f8008455ab6f647f4
parent2a03767ec0441b939c585ee49c0656056041bf22 (diff)
downloadmandoc-3a90e7272d1daf578ea1c9df7b71ac934a5f8f33.tar.gz
Fixed side-effect of linting (oops).
-rw-r--r--html.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/html.c b/html.c
index 97107f6d..8fa986a6 100644
--- a/html.c
+++ b/html.c
@@ -549,8 +549,8 @@ buffmt_includes(struct html *h, const char *name)
const char *p, *pp;
pp = h->base_includes;
- p = strchr(pp, '%');
- while (NULL != p) {
+
+ while (NULL != (p = strchr(pp, '%'))) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('I'):
@@ -574,8 +574,9 @@ buffmt_man(struct html *h,
const char *p, *pp;
pp = h->base_man;
- p = strchr(pp, '%');
- while (NULL != p) {
+
+ /* LINTED */
+ while (NULL != (p = strchr(pp, '%'))) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('S'):