gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated: zero out last_row_o


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: zero out last_row_off_size when we NULL last_row_off, cosmetics; remove bogus GNUNET_break: last_row_off size is allowed to be 0 here
Date: Mon, 12 Mar 2018 12:36:30 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 61fbc32  zero out last_row_off_size when we NULL last_row_off, 
cosmetics; remove bogus GNUNET_break: last_row_off size is allowed to be 0 here
61fbc32 is described below

commit 61fbc327675a1d9d4ad06d790bcb5431dd69d2ca
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Mar 12 12:36:08 2018 +0100

    zero out last_row_off_size when we NULL last_row_off, cosmetics; remove 
bogus GNUNET_break: last_row_off size is allowed to be 0 here
---
 src/exchange/taler-exchange-wirewatch.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-wirewatch.c 
b/src/exchange/taler-exchange-wirewatch.c
index e9f9276..e098536 100644
--- a/src/exchange/taler-exchange-wirewatch.c
+++ b/src/exchange/taler-exchange-wirewatch.c
@@ -160,6 +160,7 @@ shutdown_task (void *cls)
   wire_plugin = NULL;
   GNUNET_free_non_null (last_row_off);
   last_row_off = NULL;
+  last_row_off_size = 0;
 }
 
 
@@ -384,8 +385,6 @@ history_cb (void *cls,
     return GNUNET_SYSERR;
   }
 
-  GNUNET_break (0 != row_off_size);
-
   if (last_row_off_size != row_off_size)
   {
     GNUNET_free_non_null (last_row_off);
@@ -457,7 +456,9 @@ find_transfers (void *cls)
       return;
     }
   }
-  GNUNET_assert ((NULL == last_row_off) || ((NULL != last_row_off) && 
(last_row_off_size != 0)));
+  GNUNET_assert ( (NULL == last_row_off) ||
+                  ( (NULL != last_row_off) &&
+                    (0 != last_row_off_size) ) );
   delay = GNUNET_YES;
   hh = wire_plugin->get_history (wire_plugin->cls,
                                 TALER_BANK_DIRECTION_CREDIT,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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