hostapd: fix config change detection on boolean values
[openwrt/staging/nbd.git] / package / network / services / hostapd / files / common.uc
index 9ece3b1af2ea1b545a8cf07031770e96d75887be..74c07855c958487cee27956ff8f6191e095781fa 100644 (file)
@@ -150,7 +150,7 @@ function is_equal(val1, val2) {
                        if (!is_equal(val1[key], val2[key]))
                                return false;
                for (let key in val2)
-                       if (!val1[key])
+                       if (val1[key] == null)
                                return false;
                return true;
        } else {