summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-15 11:11:17 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-15 11:12:47 +0900
commitd3caca21e5d2231d7aeca423d7a7ff1f5aa48cc4 (patch)
tree048604f61cd8e2125d6dacf283de8aed281e3748
parent1fa7d3070b84759f6075a3b0732d2231afd82a51 (diff)
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.
-rw-r--r--src/modules/evas/engines/software_x11/evas_xlib_color.c4
1 files changed, 4 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 5f3f9aa7cb..55920e1a05 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)
71 val = (val << 8) | val; 71 val = (val << 8) | val;
72 xcl.blue = (unsigned short)(val); 72 xcl.blue = (unsigned short)(val);
73 xcl.pixel = 0; 73 xcl.pixel = 0;
74 xcl.flags = 0;
75 xcl.pad = 0;
74 xcl_in = xcl; 76 xcl_in = xcl;
75 ret = XAllocColor(d, cmap, &xcl); 77 ret = XAllocColor(d, cmap, &xcl);
76 dr = (int)xcl_in.red - (int)xcl.red; 78 dr = (int)xcl_in.red - (int)xcl.red;
@@ -141,6 +143,8 @@ x_color_alloc_gray(int ng, Display *d, Colormap cmap, Visual *v)
141 xcl.green = (unsigned short)(val); 143 xcl.green = (unsigned short)(val);
142 xcl.blue = (unsigned short)(val); 144 xcl.blue = (unsigned short)(val);
143 xcl.pixel = 0; 145 xcl.pixel = 0;
146 xcl.flags = 0;
147 xcl.pad = 0;
144 xcl_in = xcl; 148 xcl_in = xcl;
145 ret = XAllocColor(d, cmap, &xcl); 149 ret = XAllocColor(d, cmap, &xcl);
146 if ((ret == 0) || 150 if ((ret == 0) ||