From 2d71ac6b691d3aaa613d5718e73090a0e9a8c7a2 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 9 May 2011 14:37:35 +0200 Subject: [PATCH] Fix error checking in headset_probe() sdp_get_proto_port() may return negative value on errors. With channel as uint8_t check for errors was always false. --- input/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/manager.c b/input/manager.c index a98a0807a..496f497b0 100644 --- a/input/manager.c +++ b/input/manager.c @@ -86,7 +86,7 @@ static int headset_probe(struct btd_device *device, GSList *uuids) const gchar *path = device_get_path(device); const sdp_record_t *record; sdp_list_t *protos; - uint8_t ch; + int ch; bdaddr_t src, dst; DBG("path %s", path); -- 2.47.3