From: Christian Brauner Date: Mon, 29 May 2017 12:37:18 +0000 (+0200) Subject: confile: config_hook() X-Git-Tag: lxc-2.1.0~110^2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03d88f7c5e61ee86af92b4775fc6c5a6abfb47ec;p=thirdparty%2Flxc.git confile: config_hook() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 11c17989c..3e062d8c4 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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) {