Allow empty string for value
This commit is contained in:
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 */
|
/* point to the value in name=value */
|
||||||
value = equals + 1;
|
value = equals + 1;
|
||||||
|
|
||||||
if (!*name || !*value || name == equals) {
|
if (!*name || name == equals) {
|
||||||
xwarnx(_("malformed setting \"%s\""), setting);
|
xwarnx(_("malformed setting \"%s\""), setting);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user