aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-06-25 01:03:38 +0200
committerJulius Bünger <buenger@mytum.de>2018-06-25 01:04:25 +0200
commit379b23128b670922fe8a6da55e0b46d698d7cdcb (patch)
tree1912da9af80cb3a297b631a5593608a0b5ef7e64 /src/rps/rps-test_util.c
parentdde9853ec747407f6e408d53df8b5e533db82b29 (diff)
downloadgnunet-379b23128b670922fe8a6da55e0b46d698d7cdcb.tar.gz
gnunet-379b23128b670922fe8a6da55e0b46d698d7cdcb.zip
rps: fixed bugs reported by coverity
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index 9a1dfe0d8..0ee290e67 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -155,6 +155,9 @@ to_file_raw (const char *file_name, const char *buf, size_t size_buf)
155 155
156 return; 156 return;
157 } 157 }
158 if (GNUNET_YES != GNUNET_DISK_file_close (f))
159 LOG (GNUNET_ERROR_TYPE_WARNING,
160 "Unable to close file\n");
158} 161}
159 162
160void 163void
@@ -384,7 +387,7 @@ store_prefix_file_name (const struct GNUNET_PeerIdentity *peer,
384 const char *prefix) 387 const char *prefix)
385{ 388{
386 unsigned int len_file_name; 389 unsigned int len_file_name;
387 unsigned int out_size; 390 int out_size;
388 char *file_name; 391 char *file_name;
389 const char *pid_long; 392 const char *pid_long;
390 393