diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scanners.re | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scanners.re b/src/scanners.re index 00a0b12..befe7d0 100644 --- a/src/scanners.re +++ b/src/scanners.re @@ -6,10 +6,9 @@ bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, { bufsize_t res; unsigned char *ptr = (unsigned char *)c->data; - unsigned char zero = '\0'; if (ptr == NULL) { - res = scanner(&zero); + return 0; } else { unsigned char lim = ptr[c->len]; |