[vte] [ring] Clear ring on _init
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] [ring] Clear ring on _init
- Date: Fri, 25 Sep 2009 21:03:53 +0000 (UTC)
commit c87f6a7dc778bb75aa6defeceda3505028c0430e
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Sep 25 17:03:31 2009 -0400
[ring] Clear ring on _init
src/ring.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ring.c b/src/ring.c
index ab13d42..908acd6 100644
--- a/src/ring.c
+++ b/src/ring.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]