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.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849026Reported-by: default avatarThomas Walker <thwalker3@gmail.com>
Signed-off-by: default avatarEmilio Pozuelo Monfort <pochu@debian.org>
Reviewed-by: Julien Cristau's avatarJulien Cristau <jcristau@debian.org>
Tested-by: default avatarThomas Walker <thwalker3@gmail.com>
Signed-off-by: Julien Cristau's avatarJulien Cristau <jcristau@debian.org>
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