summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-06-29 22:26:06 +0200
committerTom Gundersen <teg@jklm.no>2014-06-29 22:26:06 +0200
commit69f08c8338560d5d8192e7d49d21cfe93656385e (patch)
tree06fc22f5e0e72158a9454e45328e3ff098524b96
parent31db01208bfefe2172aacf9c0d1ee3043a4117e3 (diff)
network-internal: initialize _cleanup_ variable
-rw-r--r--src/libsystemd-network/network-internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c
index 317d5de6c4..7a7a4eac9d 100644
--- a/src/libsystemd-network/network-internal.c
+++ b/src/libsystemd-network/network-internal.c
@@ -465,7 +465,7 @@ int deserialize_dhcp_routes(struct sd_dhcp_route **ret, size_t *ret_size, size_t
FOREACH_WORD(word, len, string, state) {
/* WORD FORMAT: dst_ip/dst_prefixlen,gw_ip */
- _cleanup_free_ char* entry;
+ _cleanup_free_ char* entry = NULL;
char *tok, *tok_end;
unsigned n;
int r;