mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
networkd: initialize tz to null
We may not set it before checking it for null.
This commit is contained in:
parent
a19222e1d3
commit
0ab8a1b622
|
@ -823,7 +823,7 @@ static int link_enter_set_addresses(Link *link) {
|
|||
|
||||
if (link->network->dhcp_server_emit_timezone) {
|
||||
_cleanup_free_ char *buffer = NULL;
|
||||
const char *tz;
|
||||
const char *tz = NULL;
|
||||
|
||||
if (link->network->dhcp_server_timezone)
|
||||
tz = link->network->dhcp_server_timezone;
|
||||
|
|
Loading…
Reference in a new issue