Unverified Commit 66ebf6a1 by Christian Brauner Committed by Stéphane Graber

confile: config_utsname()

parent 76b83cb1
...@@ -1667,6 +1667,9 @@ static int config_utsname(const char *key, const char *value, ...@@ -1667,6 +1667,9 @@ static int config_utsname(const char *key, const char *value,
{ {
struct utsname *utsname; struct utsname *utsname;
if (config_value_empty(value))
return 0;
utsname = malloc(sizeof(*utsname)); utsname = malloc(sizeof(*utsname));
if (!utsname) { if (!utsname) {
SYSERROR("failed to allocate memory"); SYSERROR("failed to allocate memory");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment