aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set_union.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set/gnunet-service-set_union.c')
-rw-r--r--src/set/gnunet-service-set_union.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c
index 6a1072a30..e22465fd3 100644
--- a/src/set/gnunet-service-set_union.c
+++ b/src/set/gnunet-service-set_union.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 Copyright (C) 2013-2015 GNUnet e.V. 3 Copyright (C) 2013-2016 GNUnet e.V.
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -873,7 +873,7 @@ decode_and_send (struct Operation *op)
873 diff_ibf->size); 873 diff_ibf->size);
874 874
875 num_decoded = 0; 875 num_decoded = 0;
876 last_key.key_val = 0; 876 key.key_val = 0; /* just to avoid compiler thinking we use undef'ed variable */
877 877
878 while (1) 878 while (1)
879 { 879 {
@@ -890,7 +890,8 @@ decode_and_send (struct Operation *op)
890 (unsigned long) key.key_val); 890 (unsigned long) key.key_val);
891 num_decoded += 1; 891 num_decoded += 1;
892 if ( (num_decoded > diff_ibf->size) || 892 if ( (num_decoded > diff_ibf->size) ||
893 (num_decoded > 1 && last_key.key_val == key.key_val) ) 893 ( (num_decoded > 1) &&
894 (last_key.key_val == key.key_val) ) )
894 { 895 {
895 LOG (GNUNET_ERROR_TYPE_DEBUG, 896 LOG (GNUNET_ERROR_TYPE_DEBUG,
896 "detected cyclic ibf (decoded %u/%u)\n", 897 "detected cyclic ibf (decoded %u/%u)\n",