Another fix for MiscPassMessage(): Initialize returned "status".
This commit is contained in:
parent
264c3eefe6
commit
eea11301fd
|
@ -604,6 +604,7 @@ ProcXF86MiscPassMessage(client)
|
||||||
rep.mesglen = (retstr? strlen(retstr): 0);
|
rep.mesglen = (retstr? strlen(retstr): 0);
|
||||||
rep.length = (SIZEOF(xXF86MiscPassMessageReply) - SIZEOF(xGenericReply) +
|
rep.length = (SIZEOF(xXF86MiscPassMessageReply) - SIZEOF(xGenericReply) +
|
||||||
((rep.mesglen + 3) & ~3)) >> 2;
|
((rep.mesglen + 3) & ~3)) >> 2;
|
||||||
|
rep.status = 0;
|
||||||
|
|
||||||
if (client->swapped) {
|
if (client->swapped) {
|
||||||
swaps(&rep.sequenceNumber, n);
|
swaps(&rep.sequenceNumber, n);
|
||||||
|
|
Loading…
Reference in New Issue