summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html.c6
-rw-r--r--mdoc_html.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/html.c b/html.c
index ad90fad7..97107f6d 100644
--- a/html.c
+++ b/html.c
@@ -549,7 +549,8 @@ buffmt_includes(struct html *h, const char *name)
const char *p, *pp;
pp = h->base_includes;
- while ((p = strchr(pp, '%'))) {
+ p = strchr(pp, '%');
+ while (NULL != p) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('I'):
@@ -573,7 +574,8 @@ buffmt_man(struct html *h,
const char *p, *pp;
pp = h->base_man;
- while ((p = strchr(pp, '%'))) {
+ p = strchr(pp, '%');
+ while (NULL != p) {
bufncat(h, pp, (size_t)(p - pp));
switch (*(p + 1)) {
case('S'):
diff --git a/mdoc_html.c b/mdoc_html.c
index 9f2d20b9..b480925f 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1624,7 +1624,8 @@ mdoc_fn_pre(MDOC_ARGS)
assert(n->child->string);
sp = n->child->string;
- if ((ep = strchr(sp, ' '))) {
+ ep = strchr(sp, ' ');
+ if (NULL != ep) {
PAIR_CLASS_INIT(&tag[0], "ftype");
t = print_otag(h, TAG_SPAN, 1, tag);