summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/html.c b/html.c
index 856835e1..7cc081ab 100644
--- a/html.c
+++ b/html.c
@@ -212,11 +212,10 @@ print_gen_head(struct html *h)
static void
print_num(struct html *h, const char *p, size_t len)
{
- const char *rhs;
+ char c;
- rhs = mchars_num2char(p, len);
- if (rhs)
- putchar((int)*rhs);
+ if ('\0' != (c = mchars_num2char(p, len)))
+ putchar((int)c);
}
static void