Allow empty string for value
This commit is contained in:
committed by
Craig Small
parent
cc6bade6d8
commit
387e2cf1ff
2
sysctl.c
2
sysctl.c
@ -396,7 +396,7 @@ static int WriteSetting(const char *setting)
|
||||
/* point to the value in name=value */
|
||||
value = equals + 1;
|
||||
|
||||
if (!*name || !*value || name == equals) {
|
||||
if (!*name || name == equals) {
|
||||
xwarnx(_("malformed setting \"%s\""), setting);
|
||||
return -2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user