From cda0724c6d993022ab2c9db37c1d679fc830dec6 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 27 Feb 2015 11:56:32 +1100 Subject: [PATCH] =?UTF-8?q?ckdb=20-=20=E2=88=9E=20loops=20are=20bad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ckdb.h | 2 +- src/ckdb_data.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 53a09f2d..3481ba62 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.0" -#define CKDB_VERSION DB_VERSION"-1.002" +#define CKDB_VERSION DB_VERSION"-1.003" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_data.c b/src/ckdb_data.c index ce38a11a..10f5625e 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -3032,10 +3032,9 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd) STRNCPY(pa2->payaddress, pa->payaddress); pa2->payratio = pa->payratio; k_add_tail(addr_store, pa_item2); - - pa_item = next_in_ktree(pay_ctx); - DATA_PAYMENTADDRESSES_NULL(pa, pa_item); } + pa_item = next_in_ktree(pay_ctx); + DATA_PAYMENTADDRESSES_NULL(pa, pa_item); } } K_WUNLOCK(paymentaddresses_free);