]> granicus.if.org Git - procps-ng/commitdiff
Allow empty string for value
authorTheodore Dubois <tblodt@icloud.com>
Sat, 9 Dec 2017 00:05:40 +0000 (16:05 -0800)
committerCraig Small <csmall@enc.com.au>
Fri, 29 Dec 2017 04:39:44 +0000 (15:39 +1100)
sysctl.c

index f8408d5eb3aee78bb49e2dffc214c7f5bf479caf..70042215ad1b95da8eb94a2b50856584e19f50c5 100644 (file)
--- a/sysctl.c
+++ b/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;
        }