The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/hdk: Zero initialize buffer

+1 -1
+1 -1
src/xrt/drivers/hdk/hdk_device.cpp
··· 122 122 static int 123 123 hdk_device_update(struct hdk_device *hd) 124 124 { 125 - uint8_t buffer[MSG_LEN_LARGE]; 125 + uint8_t buffer[MSG_LEN_LARGE]{}; 126 126 127 127 auto bytesRead = os_hid_read(hd->dev, buffer, sizeof(buffer), 100); 128 128 if (bytesRead == -1) {