Commit 15dc64a696f0b5225ba0fadc062b301fec59e505

Kano 2013-06-25T11:51:39

usbutils - incorrect test for * in bus:dev

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index 5660d2b..620a108 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -2945,7 +2945,7 @@ void usb_initialise()
 				if (bus <= 0)
 					quit(1, "Invalid --usb bus:dev - bus must be > 0");
 
-				if (!colon == '*')
+				if (*colon == '*')
 					dev = -1;
 				else {
 					dev = atoi(colon);