media-add-ons/usb_webcam: Fix -Wclass-memaccess
Remove memset(), since WebCamAddOn()::FillDefaultFlavorInfo() at next line sets all flavor_info members except _reserved_[]. Change-Id: I41b4297a79303b61ccea914133b268b118b0d968 Reviewed-on: https://review.haiku-os.org/c/1118 Reviewed-by: Barrett17 <[email protected]>
This commit is contained in:
@@ -47,7 +47,6 @@ CamDevice::CamDevice(CamDeviceAddon &_addon, BUSBDevice* _device)
|
|||||||
fLocker("WebcamDeviceLock")
|
fLocker("WebcamDeviceLock")
|
||||||
{
|
{
|
||||||
// fill in the generic flavor
|
// fill in the generic flavor
|
||||||
memset(&fFlavorInfo, 0, sizeof(fFlavorInfo));
|
|
||||||
_addon.WebCamAddOn()->FillDefaultFlavorInfo(&fFlavorInfo);
|
_addon.WebCamAddOn()->FillDefaultFlavorInfo(&fFlavorInfo);
|
||||||
// if we use id matching, cache the index to the list
|
// if we use id matching, cache the index to the list
|
||||||
if (fCamDeviceAddon.SupportedDevices()) {
|
if (fCamDeviceAddon.SupportedDevices()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user