]> 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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 14:20:35 +0000 (16:20 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 6e75f321ecbb6a9a7941df28f156f887ea33dcbc..23b214ba425548e5eeb5e50bb1c19d8c38d732d0 100644 (file)
@@ -882,7 +882,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);