Commit ce7e30c460d2764e6d9d52d1baa11ddf108f07bf

kanoi 2014-07-06T14:37:35

Merge pull request #624 from kanoi/master initialise more pool values in benchmark

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/cgminer.c b/cgminer.c
index 4e189ca..b0330b3 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -9340,6 +9340,10 @@ int main(int argc, char *argv[])
 			strcpy(pool->rpc_url, "Benchmark");
 		pool->rpc_user = pool->rpc_url;
 		pool->rpc_pass = pool->rpc_url;
+		pool->rpc_userpass = pool->rpc_url;
+		pool->sockaddr_url = pool->rpc_url;
+		strncpy(pool->diff, "?", sizeof(pool->diff)-1);
+		pool->diff[sizeof(pool->diff)-1] = '\0';
 		enable_pool(pool);
 		pool->idle = false;
 		successful_connect = true;