]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_network_ipv4()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:35:13 +0000 (14:35 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:32:36 +0000 (17:32 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 49fa403ad11eff5a22357915056d989eb1095e35..f2d2aa183293ed3d6d505dde86ad9c6a6dc7ff49 100644 (file)
@@ -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);