chiark / gitweb /
network-internal: initialize _cleanup_ variable
authorTom Gundersen <teg@jklm.no>
Sun, 29 Jun 2014 20:26:06 +0000 (22:26 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 29 Jun 2014 20:26:06 +0000 (22:26 +0200)
src/libsystemd-network/network-internal.c

index 317d5de..7a7a4ea 100644 (file)
@@ -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;