linux-usb-gadgets / libusbgx

C library encapsulating the Linux kernel USB gadget configfs userspace API functionality
GNU General Public License v2.0
216 stars 72 forks source link

libusbgx: fix usbg_free_gadget_strs when passing NULL #16

Closed agners closed 7 years ago

agners commented 7 years ago

Do not dereference g_strs if we pass NULL to usbg_free_gadget_strs.

Signed-off-by: Stefan Agner stefan.agner@toradex.com

kopasiak commented 7 years ago

merged. Thanks