summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-04 17:49:13 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commitd8f44f1e4f0bd944ab43e6434a1579d670ed66cf (patch)
treeab2239dafd7127d545f27f65e7389d2427569fc0 /src/inlines.c
parent9830d3a05a374a0d05676301bd4065917b59ad53 (diff)
433/8
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 599be84..8e2e683 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -591,6 +591,9 @@ static unsigned char *clean_url(chunk *url, int is_email)
chunk_trim(url);
+ if (url->len == 0)
+ return NULL;
+
if (is_email)
gh_buf_puts(&buf, "mailto:");