[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix error handling, do not
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix error handling, do not continue with uninitialized variable after failure |
Date: |
Fri, 05 Jan 2018 17:18:09 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 1c4566393 fix error handling, do not continue with uninitialized
variable after failure
1c4566393 is described below
commit 1c456639363f1a80c4818b3c99511b9f460e5ed8
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 5 17:18:06 2018 +0100
fix error handling, do not continue with uninitialized variable after
failure
---
src/peerinfo/gnunet-service-peerinfo.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/peerinfo/gnunet-service-peerinfo.c
b/src/peerinfo/gnunet-service-peerinfo.c
index af1eb2d1d..83a7b589b 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -559,11 +559,11 @@ hosts_directory_scan_callback (void *cls,
if (GNUNET_OK !=
GNUNET_HELLO_get_id (r.friend_only_hello,
&id_friend))
+ {
if (GNUNET_YES == dsc->remove_files)
- {
remove_garbage (fullname);
- return GNUNET_OK;
- }
+ return GNUNET_OK;
+ }
id = id_friend;
}
if (NULL != r.hello)
@@ -571,11 +571,11 @@ hosts_directory_scan_callback (void *cls,
if (GNUNET_OK !=
GNUNET_HELLO_get_id (r.hello,
&id_public))
+ {
if (GNUNET_YES == dsc->remove_files)
- {
remove_garbage (fullname);
- return GNUNET_OK;
- }
+ return GNUNET_OK;
+ }
id = id_public;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix error handling, do not continue with uninitialized variable after failure,
gnunet <=