summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax.c b/syntax.c
index 3e9d3d9..05bf04b 100644
--- a/syntax.c
+++ b/syntax.c
@@ -1191,7 +1191,7 @@ static void syntax_highlight_cfg(SyntaxState *state, const char32_t *line, u32 l
}
if (!string && is_ted_cfg && line[0] == '%') {
- memset(char_types, SYNTAX_PREPROCESSOR, line_len);
+ if (char_types) memset(char_types, SYNTAX_PREPROCESSOR, line_len);
return;
}