From 9fe2ef162d766a2f61e7a56af76b1b5b65c31cda Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 12 Apr 2016 15:38:17 +1000 Subject: [PATCH] Unnecessary test --- src/ckpool.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ckpool.c b/src/ckpool.c index 055c7af2..6f3eb99e 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -1771,15 +1771,13 @@ int main(int argc, char **argv) ckp.btcdpass = ckzalloc(sizeof(char *)); ckp.btcdnotify = ckzalloc(sizeof(bool)); } - if (ckp.btcds) { - for (i = 0; i < ckp.btcds; i++) { - if (!ckp.btcdurl[i]) - ckp.btcdurl[i] = strdup("localhost:8332"); - if (!ckp.btcdauth[i]) - ckp.btcdauth[i] = strdup("user"); - if (!ckp.btcdpass[i]) - ckp.btcdpass[i] = strdup("pass"); - } + for (i = 0; i < ckp.btcds; i++) { + if (!ckp.btcdurl[i]) + ckp.btcdurl[i] = strdup("localhost:8332"); + if (!ckp.btcdauth[i]) + ckp.btcdauth[i] = strdup("user"); + if (!ckp.btcdpass[i]) + ckp.btcdpass[i] = strdup("pass"); } ckp.donaddress = "14BMjogz69qe8hk9thyzbmR5pg34mVKB1e";