swconfig: Bugfix switch_port uci option parsing
authorBen Kelly <ben@benjii.net>
Mon, 20 Feb 2017 12:04:30 +0000 (14:04 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Mar 2017 19:37:37 +0000 (20:37 +0100)
commit3d52251df42c810e84c712f8dded2fe3af44f7e6
treece68b88c6db8595ab763892c3f4c6f36f62e35fd
parentdf041b65200cc4c9d989164de51f9c058e8d272f
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