summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inlines.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 6e92aff..6f93fd4 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -967,13 +967,10 @@ static bufsize_t manual_scan_link_url(cmark_chunk *input, bufsize_t offset,
} else if (input->data[i] == '\\')
i += 2;
else if (input->data[i] == '\n' || input->data[i] == '<')
- return manual_scan_link_url_2(input, offset, output);
+ return -1;
else
++i;
}
- if (i >= input->len) {
- return manual_scan_link_url_2(input, offset, output);
- }
} else {
return manual_scan_link_url_2(input, offset, output);
}