From 781ee14af864a6c261ae8e041c5cb5197892216c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 26 Aug 2016 11:32:51 +0000 Subject: [PATCH] -fix cov warning --- src/set/gnunet-service-set_union.c | 7 ++++--- 1 file 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 @@ /* This file is part of GNUnet - Copyright (C) 2013-2015 GNUnet e.V. + Copyright (C) 2013-2016 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -873,7 +873,7 @@ decode_and_send (struct Operation *op) diff_ibf->size); num_decoded = 0; - last_key.key_val = 0; + key.key_val = 0; /* just to avoid compiler thinking we use undef'ed variable */ while (1) { @@ -890,7 +890,8 @@ decode_and_send (struct Operation *op) (unsigned long) key.key_val); num_decoded += 1; if ( (num_decoded > diff_ibf->size) || - (num_decoded > 1 && last_key.key_val == key.key_val) ) + ( (num_decoded > 1) && + (last_key.key_val == key.key_val) ) ) { LOG (GNUNET_ERROR_TYPE_DEBUG, "detected cyclic ibf (decoded %u/%u)\n", -- 2.25.1