Re: [Spice-devel] [spice-gtk v2] usb-device-widget: Fix crash on no USB devices

2018-04-17 Thread Frediano Ziglio
> > On 13/04/18 18:20, Victor Toso wrote: > > Hi, > > > > On Fri, Apr 13, 2018 at 03:14:56PM -0300, Eduardo Lima (Etrunko) wrote: > >> On 13/04/18 05:50, Victor Toso wrote: > >>> From: goldengdeng <907246...@qq.com> > >>> > >>> The spice_usb_device_manager_get_devices() is only checking for NULL

Re: [Spice-devel] [spice-gtk v2] usb-device-widget: Fix crash on no USB devices

2018-04-16 Thread Eduardo Lima (Etrunko)
On 13/04/18 18:20, Victor Toso wrote: > Hi, > > On Fri, Apr 13, 2018 at 03:14:56PM -0300, Eduardo Lima (Etrunko) wrote: >> On 13/04/18 05:50, Victor Toso wrote: >>> From: goldengdeng <907246...@qq.com> >>> >>> The spice_usb_device_manager_get_devices() is only checking for NULL >>> while the

Re: [Spice-devel] [spice-gtk v2] usb-device-widget: Fix crash on no USB devices

2018-04-13 Thread Victor Toso
Hi, On Fri, Apr 13, 2018 at 03:14:56PM -0300, Eduardo Lima (Etrunko) wrote: > On 13/04/18 05:50, Victor Toso wrote: > > From: goldengdeng <907246...@qq.com> > > > > The spice_usb_device_manager_get_devices() is only checking for NULL > > while the program can crash when no USB devices are

Re: [Spice-devel] [spice-gtk v2] usb-device-widget: Fix crash on no USB devices

2018-04-13 Thread Eduardo Lima (Etrunko)
On 13/04/18 05:50, Victor Toso wrote: > From: goldengdeng <907246...@qq.com> > > The spice_usb_device_manager_get_devices() is only checking for NULL > while the program can crash when no USB devices are available. > > Signed-off-by: Victor Toso > --- >

[Spice-devel] [spice-gtk v2] usb-device-widget: Fix crash on no USB devices

2018-04-13 Thread Victor Toso
From: goldengdeng <907246...@qq.com> The spice_usb_device_manager_get_devices() is only checking for NULL while the program can crash when no USB devices are available. Signed-off-by: Victor Toso --- src/usb-device-widget.c | 3 ++- 1 file changed, 2 insertions(+), 1