aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/html.c b/html.c
index 95d26b9..cad966b 100644
--- a/html.c
+++ b/html.c
@@ -24,6 +24,12 @@ static char *html_encode(const char *s)
dynstr_init(&d);
+ if (!*s && dynstr_append(&d, ""))
+ {
+ fprintf(stderr, "%s: dynstr_append empty failed\n", __func__);
+ goto failure;
+ }
+
while (*s)
{
static const struct esc