diff options
Diffstat (limited to 'src/inlines.c')
-rw-r--r-- | src/inlines.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c index b43f774..19e650c 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -178,6 +178,9 @@ static inline int isbacktick(int c) static inline unsigned char peek_char(subject *subj) { + // NULL bytes should have been stripped out by now. If they're + // present, it's a programming error: + assert(!(subj->pos < subj->input.len && subj->input.data[subj->pos] == 0)); return (subj->pos < subj->input.len) ? subj->input.data[subj->pos] : 0; } |