X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/0c1b7bd0c0c67e2ee5fee8952d8aa5f5ef33ee28..f3f0161d5d0a0053fa4efd98d8fbb08242d7778b:/html.c diff --git a/html.c b/html.c index fc55e881..65f7eea4 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.219 2017/07/15 17:57:51 schwarze Exp $ */ +/* $Id: html.c,v 1.220 2017/09/06 16:24:25 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -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 */