Commit 5c71d4fceae8acf4e19cadd2410e72d7664cbc70

Con Kolivas 2014-03-25T17:44:42

Trivial variable reuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index e48f676..60816b6 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3263,10 +3263,10 @@ static bool get_upstream_work(struct work *work, CURL *curl)
 	bool rc = false;
 	char *url;
 
-	applog(LOG_DEBUG, "DBG: sending %s get RPC call: %s", pool->rpc_url, pool->rpc_req);
-
 	url = pool->rpc_url;
 
+	applog(LOG_DEBUG, "DBG: sending %s get RPC call: %s", url, pool->rpc_req);
+
 	cgtime(&work->tv_getwork);
 
 	val = json_rpc_call(curl, url, pool->rpc_userpass, pool->rpc_req, false,