summaryrefslogtreecommitdiff
path: root/src/wire/plugin_wire_test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-05-16 22:53:18 +0200
committerChristian Grothoff <christian@grothoff.org>2017-05-16 22:53:18 +0200
commitfb381df2e0b5845cc768473510f22ef3dc437515 (patch)
treede1e31f7e194ee3035a5877bd396c436a95ca773 /src/wire/plugin_wire_test.c
parent55823814a515e0fb4a4ef4b1d5878c3af58a5212 (diff)
downloadexchange-fb381df2e0b5845cc768473510f22ef3dc437515.tar.gz
exchange-fb381df2e0b5845cc768473510f22ef3dc437515.tar.bz2
exchange-fb381df2e0b5845cc768473510f22ef3dc437515.zip
implement test and fix minor discovered bugs for /history via test wire plugin (fixes #4959)
Diffstat (limited to 'src/wire/plugin_wire_test.c')
-rw-r--r--src/wire/plugin_wire_test.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index 8d625ce6b..6649b91ab 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -866,11 +866,12 @@ bhist_cb (void *cls,
}
else
{
- (void) whh->hres_cb (whh->hres_cb_cls,
- TALER_BANK_DIRECTION_NONE,
- NULL,
- 0,
- NULL);
+ if (NULL != whh->hres_cb)
+ (void) whh->hres_cb (whh->hres_cb_cls,
+ TALER_BANK_DIRECTION_NONE,
+ NULL,
+ 0,
+ NULL);
whh->hh = NULL;
GNUNET_free (whh);
}
@@ -929,7 +930,7 @@ test_get_history (void *cls,
}
if (NULL == start_off)
{
- start_row = (num_results > 0) ? 0 : UINT64_MAX;
+ start_row = UINT64_MAX; /* no start row */
}
else
{