From f8e3b5c3b4868ddd04d846881072a9c8b4a41150 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 22 Apr 2010 08:52:16 +0000 Subject: [PATCH] --- src/hostlist/hostlist-client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 4c8b67aa9..90fdfb63a 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -193,7 +193,7 @@ static struct Hostlist * linked_list_tail; */ static struct Hostlist * current_hostlist; -/* +/** * Size of the linke list used to store hostlists */ static unsigned int linked_list_size; @@ -330,6 +330,7 @@ static char * get_bootstrap_url () { char *servers; + char *ret; size_t urls; size_t pos; @@ -382,8 +383,9 @@ get_bootstrap_url () } pos--; } + ret = GNUNET_strdup (&servers[pos]); GNUNET_free (servers); - return GNUNET_strdup (&servers[pos]); + return ret; } /** -- 2.25.1