]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_loglevel()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:38:26 +0000 (14:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 14:20:37 +0000 (16:20 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 359fcbba4b9f4c9bacbfa55b41ade91f86be1009..113ecfc273437ff0f4b1d8673ddc42d474acb29f 100644 (file)
@@ -1421,7 +1421,7 @@ static int config_loglevel(const char *key, const char *value,
 {
        int newlevel;
 
-       if (!value || strlen(value) == 0)
+       if (config_value_empty(value))
                return 0;
 
        if (value[0] >= '0' && value[0] <= '9') {