Diff between fce691bd0bd08710ffd379025e894bcffaa5acb6 and 90228fc151bac5f19b2d21c18d51ef90f3b0d1b5

Changed Files

File Additions Deletions Status
profiles/input/device.c +1 -1 modified

Full Patch

diff --git a/profiles/input/device.c b/profiles/input/device.c
index 6bcc6a5..759603a 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -210,7 +210,7 @@ static void extract_hid_record(sdp_record_t *rec, struct hidp_connadd_req *req)
 	pdlist = sdp_data_get(rec, SDP_ATTR_SVCDESC_PRIMARY);
 	pdlist2 = sdp_data_get(rec, SDP_ATTR_PROVNAME_PRIMARY);
 	if (pdlist && pdlist2 &&
-				strncmp(pdlist->val.str, pdlist2->val.str, 5)) {
+			strncmp(pdlist->val.str, pdlist2->val.str, 5) != 0) {
 		snprintf(req->name, sizeof(req->name), "%s %s",
 					pdlist2->val.str, pdlist->val.str);
 	} else {