diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-05 17:19:18 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-05 17:19:18 +0100 |
commit | b6b7a36737579b44f243b24f903539cf9967f454 (patch) | |
tree | 4734f9d9a69fe06ab159244a4b3cd6de29cce66c | |
parent | 111f8f2381ef40485c3007823911f2da63d69139 (diff) |
wirewatch: fix uninitialized offset variable, logging
-rw-r--r-- | src/exchange/taler-exchange-wirewatch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index e45b42437..652b34645 100644 --- 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, |