fw4.uc: fix parsing boolean "0" values
authorJo-Philipp Wich <jo@mein.io>
Wed, 31 Mar 2021 19:05:56 +0000 (21:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 31 Mar 2021 19:20:48 +0000 (21:20 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc

index ebab4f7d29f0b9563d7a3ee847b60522f2fb386f..c8396fa5a9355c91ef133fea9901f97c7542a051 100644 (file)
@@ -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;