]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_hook()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:37:18 +0000 (14:37 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:32:48 +0000 (17:32 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index eca9cf3694429bf4889cc36f235b21c88b71afaa..40b4f2e42b3dd4b7e8c5020e736f53d9d434da0d 100644 (file)
@@ -1022,7 +1022,7 @@ static int config_hook(const char *key, const char *value,
 {
        char *copy;
 
-       if (!value || strlen(value) == 0)
+       if (config_value_empty(value))
                return lxc_clear_hooks(lxc_conf, key);
 
        copy = strdup(value);