diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 15:37:51 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 15:37:51 -0400 |
| commit | 0b76011a45b421b1473e9be75e538d3ceadf1140 (patch) | |
| tree | 5738f89e0fb55235e0a3fda861db1a2dde2bd063 /parse.c | |
| parent | 013995b146a5984a7bd053ad33aae88d42838868 (diff) | |
Remove some less-supported code features like static initializers for
variable-sized arrays
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -207,7 +207,7 @@ static const char *unescape(parse_ctx_t *ctx, const char **out) { size_t len = strcspn(&escape[2], "\r\n}"); if (escape[2+len] != '}') parser_err(ctx, escape, escape + 2 + len, "Missing closing '}'"); - char name[len+1] = {}; + char name[len+1]; memcpy(name, &escape[2], len); name[len] = '\0'; uint32_t codepoint = unicode_name_character(name); |
