diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-30 22:24:31 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-30 22:24:31 +0000 |
commit | 44ecac209529bca926296c46ec9ba062147bfbe2 (patch) | |
tree | 665dc3ecbb25554e5468ee30b1d2b4a486770254 /html.c | |
parent | 8978dc20be98c1d06b71ccbb2bb988879f8a2d1c (diff) | |
download | mandoc-44ecac209529bca926296c46ec9ba062147bfbe2.tar.gz |
Make mchars_num2char() return a char like it says.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |