X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/746c2a7d3c33f4462abddfeccd3160c47f2770aa..77ec3b2de9bb1880b258ec6aaf4949f146f6fd8d:/package/swconfig/src/uci.c?ds=inline diff --git a/package/swconfig/src/uci.c b/package/swconfig/src/uci.c index 1de689ce6..893e3d1dd 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);