networkd: initialize tz to null

We may not set it before checking it for null.
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2015-08-30 03:19:25 +02:00
parent a19222e1d3
commit 0ab8a1b622

View file

@ -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;