Allow empty string for value
This commit is contained in:
committed by
Craig Small
parent
fab7cc56e2
commit
2e302406f7
2
sysctl.c
2
sysctl.c
@ -394,7 +394,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