projects
/
project
/
firewall4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694d428
)
fw4.uc: fix parsing boolean "0" values
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 31 Mar 2021 19:05:56 +0000
(21:05 +0200)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/root/usr/share/ucode/fw4.uc
b/root/usr/share/ucode/fw4.uc
index ebab4f7d29f0b9563d7a3ee847b60522f2fb386f..c8396fa5a9355c91ef133fea9901f97c7542a051 100644
(file)
--- 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;