diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-12-31 16:07:17 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-12-31 16:07:17 +0100 |
commit | 7d4866548d028489d84c39af1bb9206842a77b2b (patch) | |
tree | 4b86c18252553ea711836cf149934417a66af709 | |
parent | e7a2419a2ae2a8f56a3e2840f8d623d2a449277a (diff) |
lldp: fix uninitialized cleanup var #2
Another uninitialized variable marked as _cleanup_. Set it to NULL to
avoid accessing uninitialized memory.
-rw-r--r-- | src/libsystemd-network/lldp-internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/lldp-internal.c b/src/libsystemd-network/lldp-internal.c index d03445b1e2..f843fd256d 100644 --- a/src/libsystemd-network/lldp-internal.c +++ b/src/libsystemd-network/lldp-internal.c @@ -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; |