swconfig: Bugfix switch_port uci option parsing
authorBen Kelly <ben@benjii.net>
Mon, 20 Feb 2017 12:04:30 +0000 (14:04 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 23 Feb 2017 15:52:17 +0000 (16:52 +0100)
commitdf9e7b1b269f4bd617cd8eb1b8f8a0d9ecb57160
treecfdb5ac9be96e32aee92869971adaa127d5e421b
parent43b6d3f0598e58a9ee200cd6e403e26af865181d
swconfig: Bugfix switch_port uci option parsing

When not defining 'device' or 'vlan' in relevant switch_port uci
sections, behaviour is inconsistent due to *devn, *port and *vlan
pointers not being zero initialized.

Signed-off-by: Ben Kelly <ben@benjii.net>
package/network/config/swconfig/src/uci.c