From: Jo-Philipp Wich Date: Wed, 31 Mar 2021 19:05:56 +0000 (+0200) Subject: fw4.uc: fix parsing boolean "0" values X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=25b2c7d019aad51bf9073736b3cba444a674e8bd;p=project%2Ffirewall4.git fw4.uc: fix parsing boolean "0" values Signed-off-by: Jo-Philipp Wich --- diff --git a/root/usr/share/ucode/fw4.uc b/root/usr/share/ucode/fw4.uc index ebab4f7..c8396fa 100644 --- a/root/usr/share/ucode/fw4.uc +++ b/root/usr/share/ucode/fw4.uc @@ -1316,7 +1316,7 @@ return { parse_opt: function(s, opt, fn, defval, flags) { let val = s[opt]; - if (val == null) { + if (val === null) { if (flags & REQUIRED) { this.warn_section(s, "option '" + opt + "' is mandatory but not set"); return NaN;