Skip to content

Commit

Permalink
Allow --set-device opt=val without a device specification to attempt …
Browse files Browse the repository at this point in the history
…setting it on every device
  • Loading branch information
luke-jr committed Oct 26, 2013
1 parent 49558d9 commit 0e4d622
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -9142,7 +9142,7 @@ void cgpu_set_defaults(struct cgpu_info * const cgpu)
const char * const setstr = setstr_elist->string;
p = strchr(setstr, ':');
if (!p)
continue;
p = setstr;
{
L = p - setstr;
char pattern[L + 1];
Expand All @@ -9163,7 +9163,8 @@ void cgpu_set_defaults(struct cgpu_info * const cgpu)
continue;
}

++p;
if (p[0] == ':')
++p;
p2 = strchr(p, '=');
if (!p2)
{
Expand Down

0 comments on commit 0e4d622

Please sign in to comment.