Browse Source

Bugfix: Move const data into the scope it needs to be in

Luke Dashjr 12 years ago
parent
commit
1d9cf64c72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -1503,8 +1503,8 @@ static bool work_decode(const json_t *val, struct work *work)
 				}
 			} else if (ae >= 3 || opt_coinbase_sig) {
 				const char *cbappend = opt_coinbase_sig;
+				const char full[] = PACKAGE " " VERSION;
 				if (!cbappend) {
-					const char full[] = PACKAGE " " VERSION;
 					// NOTE: Intentially including a trailing \0 on long forms so extranonce doesn't confuse things
 					if ((size_t)ae >= sizeof(full))
 						cbappend = full;