gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37788 - gnunet/src/set


From: gnunet
Subject: [GNUnet-SVN] r37788 - gnunet/src/set
Date: Fri, 26 Aug 2016 13:32:51 +0200

Author: grothoff
Date: 2016-08-26 13:32:51 +0200 (Fri, 26 Aug 2016)
New Revision: 37788

Modified:
   gnunet/src/set/gnunet-service-set_union.c
Log:
-fix cov warning

Modified: gnunet/src/set/gnunet-service-set_union.c
===================================================================
--- gnunet/src/set/gnunet-service-set_union.c   2016-08-25 15:17:32 UTC (rev 
37787)
+++ gnunet/src/set/gnunet-service-set_union.c   2016-08-26 11:32:51 UTC (rev 
37788)
@@ -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 @@
        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 @@
            (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",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]