Commit c87f6a7d authored by Behdad Esfahbod's avatar Behdad Esfahbod
Browse files

[ring] Clear ring on _init

parent 73aba035
......@@ -55,6 +55,8 @@ _vte_ring_init (VteRing *ring, guint max_rows)
_vte_debug_print(VTE_DEBUG_RING, "New ring %p.\n", ring);
memset (ring, 0, sizeof (*ring));
ring->max = MAX (max_rows, 3);
ring->mask = 31;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment