]> 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:23:54 +0000 (15:23 +1100)
sysctl.c

index aadc2330f0e945b75d1332b1a99307f0edbdebde..834662b34b40a808876ef637ae7fdfae95aeadf5 100644 (file)
--- a/sysctl.c
+++ b/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;
        }