csi: sgr_reset(): avoid using memset()

This _should_ be what the compiler does anyway (i.e. it _should_
replace the memset() with inline MOVs). But let's be sure.
This commit is contained in:
Daniel Eklöf 2024-06-24 11:02:47 +02:00
parent 08138e9546
commit 5e046e6a84
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
csi.c
View file

@ -32,9 +32,8 @@
static void
sgr_reset(struct terminal *term)
{
/* TODO: can we drop this check? */
memset(&term->vt.attrs, 0, sizeof(term->vt.attrs));
memset(&term->vt.curly, 0, sizeof(term->vt.curly));
term->vt.attrs = (struct attributes){0};
term->vt.curly = (struct curly_range_data){0};
term->bits_affecting_ascii_printer.curly_style = false;
term->bits_affecting_ascii_printer.curly_color = false;