aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-auto-share.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-29 13:54:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-29 13:54:00 +0000
commit4063a80951c4c42a49f3811b81b3b642634dcd31 (patch)
tree6f94fefa5c2b61bcc45f1f87bb9eb8b2eb34308e /src/fs/gnunet-auto-share.c
parent722980c056f396b25b5b15d6a805654d02b3c5ef (diff)
downloadgnunet-4063a80951c4c42a49f3811b81b3b642634dcd31.tar.gz
gnunet-4063a80951c4c42a49f3811b81b3b642634dcd31.zip
-fixes
Diffstat (limited to 'src/fs/gnunet-auto-share.c')
-rw-r--r--src/fs/gnunet-auto-share.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c
index ec90ae2d5..f7026554d 100644
--- a/src/fs/gnunet-auto-share.c
+++ b/src/fs/gnunet-auto-share.c
@@ -283,6 +283,14 @@ save_state ()
283 n = GNUNET_CONTAINER_multihashmap_size (work_finished); 283 n = GNUNET_CONTAINER_multihashmap_size (work_finished);
284 fn = get_state_file (); 284 fn = get_state_file ();
285 wh = GNUNET_BIO_write_open (fn); 285 wh = GNUNET_BIO_write_open (fn);
286 if (NULL == wh)
287 {
288 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
289 _("Failed to save state to file %s\n"),
290 fn);
291 GNUNET_free (fn);
292 return;
293 }
286 if (GNUNET_OK != 294 if (GNUNET_OK !=
287 GNUNET_BIO_write_int32 (wh, n)) 295 GNUNET_BIO_write_int32 (wh, n))
288 { 296 {