From: Felix Fietkau Date: Fri, 8 Apr 2022 10:54:49 +0000 (+0200) Subject: interface: fix ifname present check in interface status X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=92f5e18675bf811f88548190edf596a951d1b566;p=project%2Fqosify.git interface: fix ifname present check in interface status Signed-off-by: Felix Fietkau --- diff --git a/interface.c b/interface.c index 7979b21..e51db3f 100644 --- a/interface.c +++ b/interface.c @@ -549,7 +549,7 @@ __qosify_iface_status(struct blob_buf *b, struct qosify_iface *iface) c = blobmsg_open_table(b, qosify_iface_name(iface)); blobmsg_add_u8(b, "active", iface->active); - if (iface->ifname) + if (iface->ifname[0]) blobmsg_add_string(b, "ifname", iface->ifname); blobmsg_add_u8(b, "egress", iface->config.egress); blobmsg_add_u8(b, "ingress", iface->config.ingress);