From: Christian Brauner Date: Mon, 29 May 2017 12:35:55 +0000 (+0200) Subject: confile: config_network_ipv4_gateway() X-Git-Tag: lxc-1.0.11~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355a2836d4610dcc9d1998cceae1beb498ff38f2;p=thirdparty%2Flxc.git confile: config_network_ipv4_gateway() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index f2d2aa183..c7d26548a 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -845,7 +845,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value, free(netdev->ipv4_gateway); - if (!value || strlen(value) == 0) { + if (config_value_empty(value)) { netdev->ipv4_gateway = NULL; } else if (!strcmp(value, "auto")) { netdev->ipv4_gateway = NULL;