diff options
author | Steven Barth <steven@midlink.org> | 2015-04-14 08:45:26 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-14 08:45:26 +0200 |
commit | 8b468ec5022834d04b6be1cf45b4fe4f092c692e (patch) | |
tree | 3f3f137fc8959b54297a8b7b2a87d56990ee73af /ubus.c | |
parent | 92d2aea918f650f309f753349457028032d53280 (diff) |
Cleanup issues reported by scan-build
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -687,7 +687,7 @@ netifd_dump_status(struct interface *iface) blobmsg_add_string(&b, "proto", iface->proto_handler->name); dev = iface->main_dev.dev; - if (dev && !dev->hidden && + if (dev && !dev->hidden && iface->proto_handler && !(iface->proto_handler->flags & PROTO_FLAG_NODEV)) blobmsg_add_string(&b, "device", dev->ifname); |