mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user