diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 20:21:53 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2013-12-13 21:26:05 +0900 |
commit | 611714649bd522471c62fc37a7260840dd860e99 (patch) | |
tree | 3823274a87ddf9e907ec47c909dfcd0e165ca1f9 | |
parent | f745ac259120408500a83591e0ad2b21124e6428 (diff) |
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.
-rw-r--r-- | src/modules/evas/engines/software_x11/evas_xlib_color.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 d5592ec2b..5f3f9aa7c 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) || |