Skip to content

Commit

Permalink
confile: config_utsname()
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 Jul 1, 2017
1 parent 85a540f commit b0fed91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/confile.c
Expand Up @@ -1974,6 +1974,9 @@ static int config_utsname(const char *key, const char *value,
{
struct utsname *utsname;

if (config_value_empty(value))
return 0;

utsname = malloc(sizeof(*utsname));
if (!utsname) {
SYSERROR("failed to allocate memory");
Expand Down

0 comments on commit b0fed91

Please sign in to comment.