summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-08-30 03:19:25 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-08-30 03:23:07 +0200
commit0ab8a1b6222917e547afa02c3e28f880f4d30b64 (patch)
treea67644486012f24992d581cf34e600cf2f09675f /src
parenta19222e1d39e8f0ae254bf02b7babb0bd73ee5be (diff)
networkd: initialize tz to null
We may not set it before checking it for null.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index ff693ed0fd..d797a8ded8 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -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;