From: Matthias Wachs Date: Fri, 12 Nov 2010 12:05:18 +0000 (+0000) Subject: fixed coverity bug #10022 X-Git-Tag: initial-import-from-subversion-38251~19750 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c4fb6c09f579ce894e288dc7a4263827ea33037;p=oweals%2Fgnunet.git fixed coverity bug #10022 --- diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 0a78cdc21..9e5cbda65 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -1421,7 +1421,8 @@ static void save_hostlist_file ( int shutdown ) "HOSTLISTFILE", "HOSTLIST"); return; } - GNUNET_DISK_directory_create_for_file (filename); + if (GNUNET_SYSERR != GNUNET_DISK_directory_create_for_file (filename)) + { wh = GNUNET_BIO_write_open (filename); if ( NULL == wh) { @@ -1435,7 +1436,7 @@ 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;