aboutsummaryrefslogtreecommitdiff
path: root/src/set/gnunet-service-set_union.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-26 11:32:51 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-26 11:32:51 +0000
commit781ee14af864a6c261ae8e041c5cb5197892216c (patch)
treed6658601a45c7b00cea6f95717b96d231e760b1f /src/set/gnunet-service-set_union.c
parent30b89fe7e6111e19996e9a89a691564cef5be1d7 (diff)
downloadgnunet-781ee14af864a6c261ae8e041c5cb5197892216c.tar.gz
gnunet-781ee14af864a6c261ae8e041c5cb5197892216c.zip
-fix cov warning
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",