confile: config_hook()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-29 14:37:18 +02:00
parent 114df19ee1
commit 03d88f7c5e
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1184,7 +1184,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);
if (strcmp(key, "lxc.hook") == 0) {