mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
usbutils - incorrect test for * in bus:dev
This commit is contained in:
parent
9dc2f3f175
commit
15dc64a696
@ -2945,7 +2945,7 @@ void usb_initialise()
|
|||||||
if (bus <= 0)
|
if (bus <= 0)
|
||||||
quit(1, "Invalid --usb bus:dev - bus must be > 0");
|
quit(1, "Invalid --usb bus:dev - bus must be > 0");
|
||||||
|
|
||||||
if (!colon == '*')
|
if (*colon == '*')
|
||||||
dev = -1;
|
dev = -1;
|
||||||
else {
|
else {
|
||||||
dev = atoi(colon);
|
dev = atoi(colon);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user