mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 04:36:21 +00:00
confile: config_network_type()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
6192432367
commit
d4ba45b336
@ -434,7 +434,7 @@ static int config_network_type(const char *key, const char *value,
|
|||||||
struct lxc_netdev *netdev;
|
struct lxc_netdev *netdev;
|
||||||
struct lxc_list *list;
|
struct lxc_list *list;
|
||||||
|
|
||||||
if (!value || strlen(value) == 0)
|
if (config_value_empty(value))
|
||||||
return lxc_clear_config_network(lxc_conf);
|
return lxc_clear_config_network(lxc_conf);
|
||||||
|
|
||||||
netdev = malloc(sizeof(*netdev));
|
netdev = malloc(sizeof(*netdev));
|
||||||
|
Loading…
Reference in New Issue
Block a user