commit b6b7a36737579b44f243b24f903539cf9967f454
parent 111f8f2381ef40485c3007823911f2da63d69139
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 5 Feb 2018 17:19:18 +0100
wirewatch: fix uninitialized offset variable, logging
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c
@@ -306,6 +306,9 @@ history_cb (void *cls,
enum GNUNET_DB_QueryStatus qs;
struct TALER_ReservePublicKeyP reserve_pub;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Got history callback, direction %u!\n", (unsigned int) dir);
+
if (TALER_BANK_DIRECTION_NONE == dir)
{
hh = NULL;
@@ -353,6 +356,7 @@ history_cb (void *cls,
{
GNUNET_free_non_null (last_row_off);
last_row_off = GNUNET_malloc (row_off_size);
+ last_row_off_size = row_off_size;
}
memcpy (last_row_off,
row_off,
@@ -472,6 +476,7 @@ find_transfers (void *cls)
return;
}
}
+ GNUNET_assert ((NULL == start_off) || ((NULL != start_off) && (start_off_size != 0)));
delay = GNUNET_YES;
hh = wire_plugin->get_history (wire_plugin->cls,
TALER_BANK_DIRECTION_CREDIT,