Skip to content

Commit

Permalink
let userpass be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestv committed Jul 20, 2011
1 parent d1e565e commit 83806f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cpu-miner.c
Expand Up @@ -124,7 +124,7 @@ static enum sha256_algos opt_algo = ALGO_C;
static int opt_n_threads;
static int num_processors;
static char *rpc_url;
static char *rpc_userpass;
static char *rpc_userpass = "";
static char *rpc_user, *rpc_pass;
struct thr_info *thr_info;
static int work_thr_id;
Expand Down Expand Up @@ -819,8 +819,6 @@ static void parse_arg (int key, char *arg)
rpc_url = strdup(arg);
break;
case 1002: /* --userpass */
if (!strchr(arg, ':'))
show_usage();

free(rpc_userpass);
rpc_userpass = strdup(arg);
Expand Down

0 comments on commit 83806f6

Please sign in to comment.