diff options
-rw-r--r-- | ipset_nethash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipset_nethash.c b/ipset_nethash.c index 0934571..57f0888 100644 --- a/ipset_nethash.c +++ b/ipset_nethash.c @@ -296,7 +296,7 @@ static char * net_tostring(ip_set_ip_t ip, unsigned options) static void parse_net(const char *str, ip_set_ip_t *ip) { char *saved = strdup(str); - char *ptr, *tmp; + char *ptr, *tmp = saved; ip_set_ip_t cidr; ptr = strsep(&tmp, "/"); |