aboutsummaryrefslogtreecommitdiffstats
path: root/package/swconfig/src/uci.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/swconfig/src/uci.c')
-rw-r--r--package/swconfig/src/uci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/swconfig/src/uci.c b/package/swconfig/src/uci.c
index 1de689ce6e..893e3d1dd8 100644
--- a/package/swconfig/src/uci.c
+++ b/package/swconfig/src/uci.c
@@ -183,7 +183,7 @@ found:
port = o->v.string;
}
}
- if (!dev || !port || !port[0])
+ if (!devn || !port || !port[0])
continue;
port_n = strtoul(port, &port_err, 0);
@@ -208,7 +208,7 @@ found:
vlan = o->v.string;
}
}
- if (!dev || !vlan || !vlan[0])
+ if (!devn || !vlan || !vlan[0])
continue;
vlan_n = strtoul(vlan, &vlan_err, 0);