]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_utsname()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 13:04:40 +0000 (15:04 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:35:45 +0000 (17:35 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 01d38e05168261b61ebdafe4fa9700e7bf0ffa80..8c69b12c0b38994cf408ec479575ada37e89e406 100644 (file)
@@ -1667,6 +1667,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");