From: Christian Brauner Date: Mon, 29 May 2017 12:35:13 +0000 (+0200) Subject: confile: config_network_ipv4() X-Git-Tag: lxc-1.0.11~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ecce5ceea43098e11a542ec67f92a000a09e055;p=thirdparty%2Flxc.git confile: config_network_ipv4() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 49fa403ad..f2d2aa183 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -755,7 +755,7 @@ static int config_network_ipv4(const char *key, const char *value, struct lxc_list *list; char *cursor, *slash, *addr = NULL, *bcast = NULL, *prefix = NULL; - if (!value || !strlen(value)) + if (config_value_empty(value)) return lxc_clear_config_item(lxc_conf, key); netdev = network_netdev(key, value, &lxc_conf->network);