raster pushed a commit to branch master.

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

commit 611714649bd522471c62fc37a7260840dd860e99
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Dec 13 20:21:53 2013 +0900

    evas - silence coverity in code
    
    fixes CID 1039549 and CID 1039548 - though it isn't a bug, but means
    it should not come back in coverity.
---
 src/modules/evas/engines/software_x11/evas_xlib_color.c | 2 ++
 1 file changed, 2 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 d5592ec..5f3f9aa 100644
--- a/src/modules/evas/engines/software_x11/evas_xlib_color.c
+++ b/src/modules/evas/engines/software_x11/evas_xlib_color.c
@@ -70,6 +70,7 @@ x_color_alloc_rgb(int nr, int ng, int nb, Display *d, 
Colormap cmap, Visual *v)
                  val = (int)(((b * 255) / ((nb) - 1)));
                  val = (val << 8) | val;
                  xcl.blue = (unsigned short)(val);
+                  xcl.pixel = 0;
                  xcl_in = xcl;
                  ret = XAllocColor(d, cmap, &xcl);
                  dr = (int)xcl_in.red - (int)xcl.red;
@@ -139,6 +140,7 @@ x_color_alloc_gray(int ng, Display *d, Colormap cmap, 
Visual *v)
        xcl.red = (unsigned short)(val);
        xcl.green = (unsigned short)(val);
        xcl.blue = (unsigned short)(val);
+        xcl.pixel = 0;
        xcl_in = xcl;
        ret = XAllocColor(d, cmap, &xcl);
        if ((ret == 0) ||

-- 


Reply via email to