diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-07 15:27:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-07 15:27:11 +0000 |
commit | 3a90e7272d1daf578ea1c9df7b71ac934a5f8f33 (patch) | |
tree | 47e5a6142db18cbcc6d40b8f8008455ab6f647f4 /html.c | |
parent | 2a03767ec0441b939c585ee49c0656056041bf22 (diff) | |
download | mandoc-3a90e7272d1daf578ea1c9df7b71ac934a5f8f33.tar.gz |
Fixed side-effect of linting (oops).
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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'): |