commit f88bad901602d3e603ffe807ef4b85206ae1cbe0
parent 20a5731169278e5a2c87ec181975afd3fbba95b1
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Fri, 24 Mar 2017 13:22:02 +0100
fix stale index used by /history
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_history.c b/src/backend/taler-merchant-httpd_history.c
@@ -25,15 +25,6 @@
#include "taler-merchant-httpd.h"
#include "taler-merchant-httpd_responses.h"
-/**
- * Index to the first row to return in response to /history.
- */
-static int start = -1;
-
-/**
- * How many rows we are to return in response to /history.
- */
-static unsigned int delta;
/**
* Function called with information about a transaction.
@@ -102,6 +93,8 @@ MH_handler_history (struct TMH_RequestHandler *rh,
unsigned int ret;
unsigned long long seconds;
struct MerchantInstance *mi;
+ int start = -1;
+ unsigned int delta;
response = json_array (); /*FIXME who decrefs this?*/
str = MHD_lookup_connection_value (connection,