XcmsLookupColor: fully initialize XColor structs passed to _XColor_to_XcmsRGB

Fixes https://gitlab.freedesktop.org/xorg/lib/libx11/issues/44
aka https://bugs.freedesktop.org/show_bug.cgi?id=92154

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Bhavi Dhingra 2015-09-28 08:33:40 +00:00 committed by Alan Coopersmith
parent 733f64bfeb
commit d0416863d5

View file

@ -76,7 +76,8 @@ XcmsLookupColor (
register int n;
xLookupColorReply reply;
register xLookupColorReq *req;
XColor def, scr;
XColor def = {0,};
XColor scr = {0,};
/*
* 0. Check for invalid arguments.