mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 14:28:05 +02:00
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:
parent
733f64bfeb
commit
d0416863d5
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue