diff --git a/src/add-ons/media/media-add-ons/usb_webcam/addons/NW80xCamDevice.cpp b/src/add-ons/media/media-add-ons/usb_webcam/addons/NW80xCamDevice.cpp index 70109e9bef..47a689fcf4 100644 --- a/src/add-ons/media/media-add-ons/usb_webcam/addons/NW80xCamDevice.cpp +++ b/src/add-ons/media/media-add-ons/usb_webcam/addons/NW80xCamDevice.cpp @@ -150,7 +150,7 @@ NW80xCamDevice::ReadReg(uint16 address, uint8 *data, size_t count, bool cached) status_t NW80xCamDevice::GetStatusIIC() { - status_t err; + status_t err = B_ERROR; uint8 status = 0; #warning WRITEME //dprintf(ID "i2c_status: error 0x%08lx, status = %02x\n", err, status); diff --git a/src/add-ons/media/media-add-ons/usb_webcam/addons/quickcam/QuickCamDevice.cpp b/src/add-ons/media/media-add-ons/usb_webcam/addons/quickcam/QuickCamDevice.cpp index 4810c24a18..93fed9bbe3 100644 --- a/src/add-ons/media/media-add-ons/usb_webcam/addons/quickcam/QuickCamDevice.cpp +++ b/src/add-ons/media/media-add-ons/usb_webcam/addons/quickcam/QuickCamDevice.cpp @@ -119,7 +119,7 @@ QuickCamDevice::ReadReg(uint16 address, uint8 *data, size_t count, bool cached) status_t QuickCamDevice::GetStatusIIC() { - status_t err; + status_t err = B_ERROR; uint8 status = 0; #warning WRITEME //dprintf(ID "i2c_status: error 0x%08lx, status = %02x\n", err, status);