Commit 557b6079 authored by Emilio Pozuelo Monfort's avatar Emilio Pozuelo Monfort Committed by Julien Cristau

Fix possible free of uninitialized pointer

If the _XReply() call fails, we'll try to free an uninitialized
pointer. default avatarThomas Walker <>
Signed-off-by: default avatarEmilio Pozuelo Monfort <>
Reviewed-by: Julien Cristau's avatarJulien Cristau <>
Tested-by: default avatarThomas Walker <>
Signed-off-by: Julien Cristau's avatarJulien Cristau <>
parent 4c5c8d62
......@@ -46,7 +46,7 @@ XIQueryDevice(Display *dpy, int deviceid, int *ndevices_return)
char *ptr;
char *end;
int i;
char *buf;
char *buf = NULL;
XExtDisplayInfo *extinfo = XInput_find_display(dpy);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment