mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
lldp: fix uninitialized cleanup var #2
Another uninitialized variable marked as _cleanup_. Set it to NULL to avoid accessing uninitialized memory.
This commit is contained in:
parent
e7a2419a2a
commit
7d4866548d
@ -496,7 +496,7 @@ int lldp_chassis_new(tlv_packet *tlv,
|
||||
Prioq *by_expiry,
|
||||
Hashmap *neighbour_mib,
|
||||
lldp_chassis **ret) {
|
||||
_cleanup_lldp_chassis_free_ lldp_chassis *c;
|
||||
_cleanup_lldp_chassis_free_ lldp_chassis *c = NULL;
|
||||
uint16_t length;
|
||||
uint8_t *data;
|
||||
uint8_t type;
|
||||
|
Loading…
Reference in New Issue
Block a user