summaryrefslogtreecommitdiff
path: root/src/chunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk.h')
-rw-r--r--src/chunk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk.h b/src/chunk.h
index 666484c..f198be3 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -37,6 +37,8 @@ static CMARK_INLINE void cmark_chunk_ltrim(cmark_chunk *c) {
}
static CMARK_INLINE void cmark_chunk_rtrim(cmark_chunk *c) {
+ assert(!c->alloc);
+
while (c->len > 0) {
if (!cmark_isspace(c->data[c->len - 1]))
break;