Re: [PATCH 1/2] win-usb-driver-install: initialize "req" with memset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Mensaje original -----
> This fixes the following compilation error message:
> 
> ../../gtk/win-usb-driver-install.c: In function
> 'spice_win_usb_driver_send_request':
> ../../gtk/win-usb-driver-install.c:187:5: error: missing braces
> around initializer [-Werror=missing-braces]
> ../../gtk/win-usb-driver-install.c:187:5: error: (near initialization
> for 'req.hdr') [-Werror=missing-braces]

ah yeah, struct in struct initilialization, we usually use a define for these cases in GLib. That also allows changing the initialization later on if the structure changes, or if you want initial value etc (see all the G_*_INIT define)

ack anyway
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]