Initialize array to 0s (#5688)

This commit is contained in:
Jonathan Bennett
2024-12-29 11:05:25 +11:00
committed by GitHub
co-authored by GitHub
parent 89ebafc8b8
commit a8e2446f00
+1 -1
View File
@@ -90,7 +90,7 @@ void getMacAddr(uint8_t *dmac)
if (strlen(optionMac) >= 12) {
MAC_from_string(optionMac, dmac);
} else {
uint32_t hwId;
uint32_t hwId = {0};
sscanf(optionMac, "%u", &hwId);
dmac[0] = 0x80;
dmac[1] = 0;