gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37924 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r37924 - gnunet/src/rps
Date: Wed, 14 Sep 2016 23:43:53 +0200

Author: ch3
Date: 2016-09-14 23:43:52 +0200 (Wed, 14 Sep 2016)
New Revision: 37924

Modified:
   gnunet/src/rps/test_rps.c
Log:
-rps test: try to close file in case of failure

Modified: gnunet/src/rps/test_rps.c
===================================================================
--- gnunet/src/rps/test_rps.c   2016-09-14 18:51:12 UTC (rev 37923)
+++ gnunet/src/rps/test_rps.c   2016-09-14 21:43:52 UTC (rev 37924)
@@ -399,12 +399,19 @@
                 "Unable to write to file! (Size: %lu, size2: %lu)\n",
                 size,
                 size2);
+    if (GNUNET_YES != GNUNET_DISK_file_close (f))
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Unable to close file\n");
+    }
     return;
   }
 
   if (GNUNET_YES != GNUNET_DISK_file_close (f))
+  {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                 "Unable to close file\n");
+  }
 }
 
 /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]