[PATCH 1/4] android/client: Fix argc count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/client/if-hf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index 26c0139..269e029 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
@@ -386,7 +386,7 @@ static void init_p(int argc, const char **argv)
 	RETURN_IF_NULL(if_hf);
 
 #if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
-	if (argc < 2)
+	if (argc <= 2)
 		max_hf_clients = 1;
 	else
 		max_hf_clients = atoi(argv[2]);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux