projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1acf11
)
fixed coverity bug #10022
author
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 12 Nov 2010 12:05:18 +0000
(12:05 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 12 Nov 2010 12:05:18 +0000
(12:05 +0000)
src/hostlist/hostlist-client.c
patch
|
blob
|
history
diff --git
a/src/hostlist/hostlist-client.c
b/src/hostlist/hostlist-client.c
index 0a78cdc21a8c8dff0487ae94468819d8090bc6b1..9e5cbda65334f24fd0829b34ddd530c4e0496cb1 100644
(file)
--- 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;