]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: properly initialize ethtool structure
authorVincent Bernat <vincent@bernat.ch>
Thu, 29 Dec 2022 21:01:13 +0000 (22:01 +0100)
committerVincent Bernat <vincent@bernat.ch>
Thu, 29 Dec 2022 21:01:13 +0000 (22:01 +0100)
src/daemon/interfaces-linux.c

index 792b9893fec554229e2f50df58473428d419e508..e764943a835fdb6d12122e68ccb1fa0de3f92a3a 100644 (file)
@@ -523,7 +523,7 @@ end:
 static void
 iflinux_macphy(struct lldpd *cfg, struct lldpd_hardware *hardware)
 {
-       struct ethtool_link_usettings uset;
+       struct ethtool_link_usettings uset = {};
        struct lldpd_port *port = &hardware->h_lport;
        int j;
        int advertised_ethtool_to_rfc3636[][2] = {