[gtk+] roundedbox: Initialize the hashtable key before using it



commit 71b360cc8e72df4f7672c7eeeafb90f0c40b5cb6
Author: Timm Bäder <mail baedert org>
Date:   Tue May 3 10:58:02 2016 -0400

    roundedbox: Initialize the hashtable key before using it
    
    In mem_hash, we are iterating over the individual bytes of the key, so
    make sure all of it is initialized.

 gtk/gtkroundedbox.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkroundedbox.c b/gtk/gtkroundedbox.c
index a6d9019..38443d7 100644
--- a/gtk/gtkroundedbox.c
+++ b/gtk/gtkroundedbox.c
@@ -278,6 +278,7 @@ append_arc (cairo_t *cr, double angle1, double angle2, gboolean negative)
   Arc key;
   cairo_path_t *arc;
 
+  memset (&key, 0, sizeof (Arc));
   key.angle1 = angle1;
   key.angle2 = angle2;
   key.negative = negative;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]