summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-08-03 04:19:32 +0000
committerFelix Fietkau2025-08-03 04:19:32 +0000
commitc3cfd8df02af6b66c7aeceb61ffc2ac948fa008a (patch)
tree5c3f9ce865a930fea345ea26f52399ad201a385a
parentb563d7b2e65a756e02c579f51e3ca0211f741050 (diff)
downloadnetifd-c3cfd8df02af6b66c7aeceb61ffc2ac948fa008a.tar.gz
system-linux: add variable initialization to avoid compiler warnings on older gcc
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 29f9b4d..7f6df9e 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -3106,7 +3106,7 @@ int
system_if_dump_info(struct device *dev, struct blob_buf *b)
{
__u32 *supported, *advertising, *lp_advertising;
- bool rx_pause, tx_pause, pause_autoneg;
+ bool rx_pause = false, tx_pause = false, pause_autoneg;
struct {
struct ethtool_link_settings req;
__u32 link_mode_data[3 * 127];