X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/69e8309e23b96176a74c356e47c48bac610bdda1..c3cc5459ecb9da60a4f90550d9031d7a67478f7a:/package/swconfig/src/swlib.c diff --git a/package/swconfig/src/swlib.c b/package/swconfig/src/swlib.c index c2316d068..20e727eb5 100644 --- a/package/swconfig/src/swlib.c +++ b/package/swconfig/src/swlib.c @@ -397,6 +397,9 @@ int swlib_set_attr_string(struct switch_dev *dev, struct switch_attr *a, int por val.value.ports = ports; break; case SWITCH_TYPE_NOVAL: + if (str && !strcmp(str, "0")) + return 0; + break; default: return -1;