aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-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 {