diff options
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -250,6 +250,8 @@ html_make_id(const struct roff_node *n) buf = NULL; deroff(&buf, n); + if (buf == NULL) + return NULL; /* http://www.w3.org/TR/html5/dom.html#the-id-attribute */ |