From: Christian Brauner Date: Mon, 29 May 2017 12:32:37 +0000 (+0200) Subject: confile: config_network_type() X-Git-Tag: lxc-1.0.11~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de68ddfa191edab8a6b2ec7de556a9057a0bc9bc;p=thirdparty%2Flxc.git confile: config_network_type() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 2554fddd0..3f78beffe 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -381,7 +381,7 @@ static int config_network_type(const char *key, const char *value, struct lxc_netdev *netdev; struct lxc_list *list; - if (!value || strlen(value) == 0) + if (config_value_empty(value)) return lxc_clear_config_network(lxc_conf); netdev = malloc(sizeof(*netdev));