From 0cf3f121e2245c30fe9a2c4042526b61db380b6f Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 14 May 2015 23:03:16 +1000 Subject: [PATCH] ckdb - initialise the payout expiry counters --- src/ckdb.h | 2 +- src/ckdb_dbio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 7409d93f..e435455c 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.0" -#define CKDB_VERSION DB_VERSION"-1.110" +#define CKDB_VERSION DB_VERSION"-1.111" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index 044218a5..a0ea1bc5 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -5102,7 +5102,7 @@ K_ITEM *payouts_full_expire(PGconn *conn, int64_t payoutid, tv_t *now, bool lock char *params[8]; int n, par = 0; char *upd, *tuples = NULL; - int po_upd, mp_upd, pm_upd; + int po_upd = -7, mp_upd = -7, pm_upd = -7; // If not already done before calling if (lock)