Skip to content

Commit 8f1ccb3

Browse files
cmagliefacchinm
authored andcommitted
Fixed uninitialized use of variable
1 parent 8f2dc69 commit 8f1ccb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/PluggableUSB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int PluggableUSB_::getDescriptor(USBSetup& setup)
5555
uint8_t PluggableUSB_::getShortName(char *iSerialNum)
5656
{
5757
PluggableUSBModule* node;
58-
uint8_t size;
58+
uint8_t size = 0;
5959
for (node = rootNode; node; node = node->next) {
6060
uint8_t len = node->getShortName(iSerialNum);
6161
iSerialNum += len;

0 commit comments

Comments
 (0)