summaryrefslogtreecommitdiff
path: root/tests/hist_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hist_test.c')
-rw-r--r--tests/hist_test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/hist_test.c b/tests/hist_test.c
index f05c279..d772c5a 100644
--- a/tests/hist_test.c
+++ b/tests/hist_test.c
@@ -638,9 +638,8 @@ static void test_fuzz_rows(void)
static void test_large_wide_count(void)
{
struct hist h;
- struct hist_view view;
+ struct hist_view view = {0};
assert(term_hist_init(&h, 600, 4 * HIST_PAGE_SIZE));
- term_hist_view_init(&view);
struct cell row[4] = { dc('A'), dc(0x65e5), dc(0), dc('B') };
row[1].flags = CELL_WIDE;
row[2].flags = CELL_TRAIL;
@@ -669,9 +668,8 @@ static void test_large_wide_count(void)
static void test_view_after_prefix_eviction(void)
{
struct hist h;
- struct hist_view view;
+ struct hist_view view = {0};
assert(term_hist_init(&h, 10, 2 * HIST_PAGE_SIZE));
- term_hist_view_init(&view);
char bytes[1000];
for (int i = 0; i < 100; i++) {
memset(bytes, 'A' + i % 26, sizeof(bytes));