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 committed May 29, 2017
1 parent b822343 commit 1939e73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/confile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,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 1939e73

Please sign in to comment.