summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 23:10:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 23:10:51 +0000
commitc7c7577b0630cf19afb01b6bcfbe376e6b9d7cbf (patch)
tree7d5601080e10043ec88c5be7dd4edb953f27f5d8 /html.c
parent50ecaba08336212e4dc1802f15d7d3f4ffad186a (diff)
downloadmandoc-c7c7577b0630cf19afb01b6bcfbe376e6b9d7cbf.tar.gz
*** empty log message ***
Diffstat (limited to 'html.c')
-rw-r--r--html.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/html.c b/html.c
index de733ab6..9b5d1630 100644
--- a/html.c
+++ b/html.c
@@ -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));
}