From 0f416207366d3dc7cc8c62209f1d2b1aedfe4ec5 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 23 Nov 2021 18:22:41 -0500 Subject: [PATCH] [interrogate_terminfo] kill redundant memset() --- src/lib/termdesc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/termdesc.c b/src/lib/termdesc.c index 097658423..fc75ef1cd 100644 --- a/src/lib/termdesc.c +++ b/src/lib/termdesc.c @@ -822,7 +822,6 @@ int interrogate_terminfo(tinfo* ti, FILE* out, unsigned utf8, cursor_y = &foolcursor_y; } *cursor_x = *cursor_y = -1; - memset(ti, 0, sizeof(*ti)); ti->bg_collides_default = 0xfe000000; ti->kbdlevel = UINT_MAX; // see comment in tinfo definition ti->qterm = TERMINAL_UNKNOWN;