Skip to content

Commit b9356df

Browse files
josesimoesaromaa
authored andcommitted
Fix compiler warning about uninit var (#2490)
***NO_CI***
1 parent 704216f commit b9356df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Device.Spi/sys_dev_spi_native_System_Device_Spi_SpiDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ HRESULT Library_sys_dev_spi_native_System_Device_Spi_SpiDevice::NativeOpenDevice
277277
{
278278
NANOCLR_HEADER();
279279

280-
uint32_t handle;
280+
uint32_t handle = -1;
281281
SPI_DEVICE_CONFIGURATION spiConfig;
282282
CLR_RT_HeapBlock *config = NULL;
283283

0 commit comments

Comments
 (0)