From: Tom Gundersen Date: Sun, 29 Jun 2014 20:26:06 +0000 (+0200) Subject: network-internal: initialize _cleanup_ variable X-Git-Tag: v215~121 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=69f08c8338560d5d8192e7d49d21cfe93656385e;p=elogind.git network-internal: initialize _cleanup_ variable --- diff --git a/src/libsystemd-network/network-internal.c b/src/libsystemd-network/network-internal.c index 317d5de6c..7a7a4eac9 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;