diff --git a/src/raspberrypi/devices/scsi_powerview.cpp b/src/raspberrypi/devices/scsi_powerview.cpp index f5e7510b..4ad3d5bc 100644 --- a/src/raspberrypi/devices/scsi_powerview.cpp +++ b/src/raspberrypi/devices/scsi_powerview.cpp @@ -687,11 +687,11 @@ bool SCSIPowerView::WriteFrameBuffer(const DWORD *cdb, const BYTE *buf, const DW // For each column for (DWORD idx_col_x = 0; idx_col_x < (update_width_px); idx_col_x++){ - DWORD pixel_buffer_idx; - BYTE pixel_buffer_byte; - DWORD pixel_bit_number; - DWORD pixel; - uint32_t loc; + DWORD pixel_buffer_idx = 0; + BYTE pixel_buffer_byte = 0; + DWORD pixel_bit_number = 0; + DWORD pixel = 0; + uint32_t loc = 0; switch(color_depth){ case eColorDepth_t::eOneBitColor: @@ -805,4 +805,4 @@ bool SCSIPowerView::ReceiveBuffer(int len, BYTE *buffer) } return TRUE; -} \ No newline at end of file +}