raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d3caca21e5d2231d7aeca423d7a7ff1f5aa48cc4

commit d3caca21e5d2231d7aeca423d7a7ff1f5aa48cc4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Dec 15 11:11:17 2013 +0900

    evas - software-x11 - fill in unused struct members to avoid uninitialized
    
    this shoudl fix CID 1039548 (missed other memmbers before) and if
    valgrind ever sees this now it won't complain either.
---
 src/modules/evas/engines/software_x11/evas_xlib_color.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/evas/engines/software_x11/evas_xlib_color.c 
b/src/modules/evas/engines/software_x11/evas_xlib_color.c
index 5f3f9aa..55920e1 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_color.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_color.c
@@ -71,6 +71,8 @@ x_color_alloc_rgb(int nr, int ng, int nb, Display *d, 
Colormap cmap, Visual *v)
                  val = (val << 8) | val;
                  xcl.blue = (unsigned short)(val);
                   xcl.pixel = 0;
+                  xcl.flags = 0;
+                  xcl.pad = 0;
                  xcl_in = xcl;
                  ret = XAllocColor(d, cmap, &xcl);
                  dr = (int)xcl_in.red - (int)xcl.red;
@@ -141,6 +143,8 @@ x_color_alloc_gray(int ng, Display *d, Colormap cmap, 
Visual *v)
        xcl.green = (unsigned short)(val);
        xcl.blue = (unsigned short)(val);
         xcl.pixel = 0;
+        xcl.flags = 0;
+        xcl.pad = 0;
        xcl_in = xcl;
        ret = XAllocColor(d, cmap, &xcl);
        if ((ret == 0) ||

-- 


Reply via email to