From 3e4d24eb5fd19e6af705144335129f41e60822ac Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Dec 2010 17:18:01 +0000 Subject: [PATCH] fix --- src/hostlist/hostlist-client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 109a38dbc..4797a5544 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -1417,8 +1417,8 @@ static void save_hostlist_file ( int shutdown ) "HOSTLISTFILE", "HOSTLIST"); return; } - if (GNUNET_SYSERR != GNUNET_DISK_directory_create_for_file (filename)) - { + if (GNUNET_SYSERR == GNUNET_DISK_directory_create_for_file (filename)) + return; wh = GNUNET_BIO_write_open (filename); if ( NULL == wh) { @@ -1432,7 +1432,6 @@ static void save_hostlist_file ( int shutdown ) GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Writing %u hostlist URIs to `%s'\n" ), linked_list_size, filename); - } /* add code to write hostlists to file using bio */ ok = GNUNET_YES; counter = 0; -- 2.25.1