summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_history.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-24 13:22:02 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-24 13:22:02 +0100
commitf88bad901602d3e603ffe807ef4b85206ae1cbe0 (patch)
tree444c17ffd8cb781ec9e68d4d73db43342fb79da7 /src/backend/taler-merchant-httpd_history.c
parent20a5731169278e5a2c87ec181975afd3fbba95b1 (diff)
downloadmerchant-f88bad901602d3e603ffe807ef4b85206ae1cbe0.tar.gz
merchant-f88bad901602d3e603ffe807ef4b85206ae1cbe0.tar.bz2
merchant-f88bad901602d3e603ffe807ef4b85206ae1cbe0.zip
fix stale index used by /history
Diffstat (limited to 'src/backend/taler-merchant-httpd_history.c')
-rw-r--r--src/backend/taler-merchant-httpd_history.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/backend/taler-merchant-httpd_history.c b/src/backend/taler-merchant-httpd_history.c
index 7779331f..967bdd86 100644
--- 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,