Skip to content

Commit

Permalink
confile: config_network_hwaddr()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Aug 15, 2017
1 parent de68ddf commit 0a760d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -706,7 +706,7 @@ static int config_network_hwaddr(const char *key, const char *value,
return -1;
};

if (!new_value || strlen(new_value) == 0) {
if (config_value_empty(new_value)) {
free(new_value);
netdev->hwaddr = NULL;
return 0;
Expand Down

0 comments on commit 0a760d9

Please sign in to comment.