Ensure that *reply is set to NULL on error
This ensures it is not left uninitialized. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
parent
f96f84ee45
commit
353919948a
|
@ -416,6 +416,7 @@ static int poll_for_reply(xcb_connection_t *c, uint64_t request, void **reply, x
|
|||
{
|
||||
struct reply_list *head;
|
||||
|
||||
*reply = NULL;
|
||||
/* If an error occurred when issuing the request, fail immediately. */
|
||||
if(!request)
|
||||
head = 0;
|
||||
|
@ -447,7 +448,6 @@ static int poll_for_reply(xcb_connection_t *c, uint64_t request, void **reply, x
|
|||
|
||||
if(error)
|
||||
*error = 0;
|
||||
*reply = 0;
|
||||
|
||||
if(head)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue