Re: [PATCH libinput] Fix to avoid use of undefined pointer values.

2015-05-28 Thread Peter Hutterer
On Thu, May 28, 2015 at 05:13:14PM -0700, Jon A. Cruz wrote: > If asprintf fails for any reason, the contents of the pointer > are undefined. While some platforms set it to NULL, there is no > guarantee that all will. > > Signed-off-by: Jon A. Cruz > --- > tools/libinput-list-devices.c | 59 > +

[PATCH libinput] Fix to avoid use of undefined pointer values.

2015-05-28 Thread Jon A. Cruz
If asprintf fails for any reason, the contents of the pointer are undefined. While some platforms set it to NULL, there is no guarantee that all will. Signed-off-by: Jon A. Cruz --- tools/libinput-list-devices.c | 59 --- 1 file changed, 33 insertions(+),