diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2016-12-27 17:24:10 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2016-12-29 10:44:48 +0100 |
commit | 557b60798a9da49386f1034b133838332735de22 (patch) | |
tree | 61dac376930367417abc4e840c92d2d423620d5d /src | |
parent | 4c5c8d6246debc06a56120cff71bfdf1877884d0 (diff) |
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=849026
Reported-by: Thomas Walker <thwalker3@gmail.com>
Signed-off-by: Emilio Pozuelo Monfort <pochu@debian.org>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Tested-by: Thomas Walker <thwalker3@gmail.com>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/XIQueryDevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIQueryDevice.c b/src/XIQueryDevice.c index a877d78..51e2d0d 100644 --- a/src/XIQueryDevice.c +++ b/src/XIQueryDevice.c @@ -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); |