mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
network: improve readability of config_parse_ifalias()
This commit is contained in:
parent
25ed70f76f
commit
44386b449b
@ -255,11 +255,10 @@ int config_parse_ifalias(const char *unit,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(*s);
|
if (isempty(n))
|
||||||
if (*n)
|
*s = mfree(*s);
|
||||||
*s = TAKE_PTR(n);
|
|
||||||
else
|
else
|
||||||
*s = NULL;
|
free_and_replace(*s, n);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user