diff options
Diffstat (limited to 'src/rps')
-rw-r--r-- | src/rps/test_rps.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 629b73d44..4b4dfc8ba 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c | |||
@@ -399,12 +399,19 @@ tofile_ (const char *file_name, const char *line) | |||
399 | "Unable to write to file! (Size: %lu, size2: %lu)\n", | 399 | "Unable to write to file! (Size: %lu, size2: %lu)\n", |
400 | size, | 400 | size, |
401 | size2); | 401 | size2); |
402 | if (GNUNET_YES != GNUNET_DISK_file_close (f)) | ||
403 | { | ||
404 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
405 | "Unable to close file\n"); | ||
406 | } | ||
402 | return; | 407 | return; |
403 | } | 408 | } |
404 | 409 | ||
405 | if (GNUNET_YES != GNUNET_DISK_file_close (f)) | 410 | if (GNUNET_YES != GNUNET_DISK_file_close (f)) |
411 | { | ||
406 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 412 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
407 | "Unable to close file\n"); | 413 | "Unable to close file\n"); |
414 | } | ||
408 | } | 415 | } |
409 | 416 | ||
410 | /** | 417 | /** |