summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-04-08 01:17:10 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-04-08 02:37:45 +0200
commit9fc380f7c8ebf8b5623718de376c72e6677b93a6 (patch)
tree57b259a5cf335c13ceb404356d518871fb04f838 /src/bank-lib
parente24e845b7dcad80afcb5af526e44db2e9f8ca548 (diff)
downloadexchange-9fc380f7c8ebf8b5623718de376c72e6677b93a6.tar.gz
exchange-9fc380f7c8ebf8b5623718de376c72e6677b93a6.tar.bz2
exchange-9fc380f7c8ebf8b5623718de376c72e6677b93a6.zip
Set range pointer.
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/fakebank.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 3139f4edf..f3b58fd26 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -924,8 +924,8 @@ build_history_response (struct MHD_Connection *connection,
json_t *jresponse;
int ret;
- while (GNUNET_YES == advance (ha,
- pos))
+ while (advance (ha,
+ pos))
{
json_t *trans;
char *subject;
@@ -1224,6 +1224,7 @@ handle_history_new (struct TALER_FAKEBANK_Handle *h,
GNUNET_break (0);
return MHD_NO;
}
+ ha.range = &hri;
if (NULL == start)
pos = 0 > hri.count ?
@@ -1258,7 +1259,6 @@ handle_history_new (struct TALER_FAKEBANK_Handle *h,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"/history, start row (0 == no transactions exist): %llu\n",
NULL != pos ? pos->row_id : 0);
-
return build_history_response (connection,
pos,
&ha,