summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 4fb9cec..751a5df 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -126,6 +126,9 @@ static bool is_autolink(cmark_node *node) {
}
link_text = node->first_child;
+ if (link_text == NULL) {
+ return false;
+ }
cmark_consolidate_text_nodes(link_text);
realurl = (char *)url->data;
realurllen = url->len;