chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lldp: fix uninitialized cleanup var
[elogind.git]
/
src
/
libsystemd-network
/
lldp-internal.c
diff --git
a/src/libsystemd-network/lldp-internal.c
b/src/libsystemd-network/lldp-internal.c
index f86c11e6ca02dfd6153c159ba7c1700d7687fbfe..d03445b1e2aac3d64fc358553b4270ee9ee18167 100644
(file)
--- a/
src/libsystemd-network/lldp-internal.c
+++ b/
src/libsystemd-network/lldp-internal.c
@@
-443,7
+443,7
@@
void lldp_neighbour_port_free(lldp_neighbour_port *p) {
int lldp_neighbour_port_new(lldp_chassis *c,
tlv_packet *tlv,
lldp_neighbour_port **ret) {
int lldp_neighbour_port_new(lldp_chassis *c,
tlv_packet *tlv,
lldp_neighbour_port **ret) {
- _cleanup_lldp_neighbour_port_free_ lldp_neighbour_port *p;
+ _cleanup_lldp_neighbour_port_free_ lldp_neighbour_port *p
= NULL
;
uint16_t length, ttl;
uint8_t *data;
uint8_t type;
uint16_t length, ttl;
uint8_t *data;
uint8_t type;