]> 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)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:33:18 +0000 (17:33 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 5be746eb3bd73dba010078c662a3c69e908c8b47..1380373610b4ff881096ad8932483a83724fed6a 100644 (file)
@@ -1193,7 +1193,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')