diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 23:10:51 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 23:10:51 +0000 |
commit | c7c7577b0630cf19afb01b6bcfbe376e6b9d7cbf (patch) | |
tree | 7d5601080e10043ec88c5be7dd4edb953f27f5d8 /html.c | |
parent | 50ecaba08336212e4dc1802f15d7d3f4ffad186a (diff) | |
download | mandoc-c7c7577b0630cf19afb01b6bcfbe376e6b9d7cbf.tar.gz |
*** empty log message ***
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -380,16 +380,25 @@ html_begintag(struct md_mbuf *mbuf, const struct md_args *args, case (MD_NS_BLOCK): if ( ! html_blocktagname(mbuf, args, tok)) return(0); + if (NULL == argc || NULL == argv) + return(1); + assert(argc && argv); return(html_blocktagargs(mbuf, args, tok, argc, argv)); case (MD_NS_BODY): if ( ! html_blockbodytagname(mbuf, args, tok)) return(0); + if (NULL == argc || NULL == argv) + return(1); + assert(argc && argv); return(html_blockbodytagargs(mbuf, args, tok, argc, argv)); case (MD_NS_HEAD): if ( ! html_blockheadtagname(mbuf, args, tok)) return(0); + if (NULL == argc || NULL == argv) + return(1); + assert(argc && argv); return(html_blockheadtagargs(mbuf, args, tok, argc, argv)); default: @@ -398,6 +407,9 @@ html_begintag(struct md_mbuf *mbuf, const struct md_args *args, if ( ! html_inlinetagname(mbuf, args, tok)) return(0); + if (NULL == argc || NULL == argv) + return(1); + assert(argc && argv); return(html_inlinetagargs(mbuf, args, tok, argc, argv)); } |