mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
liblur: check return value instead of comparing the out_ptr
Fixes a clang-analyze warning for a dead assignment.
This commit is contained in:
@@ -204,7 +204,7 @@ lur_receiver_enumerate(struct lur_receiver *lur,
|
||||
bool is_new_device = true;
|
||||
|
||||
rc = hidpp10_device_new(&base, i, HIDPP10_PROFILE_UNKNOWN, 1, &d);
|
||||
if (!d)
|
||||
if (rc)
|
||||
continue;
|
||||
|
||||
rc = hidpp10_get_pairing_information_device_name(d, name, &name_size);
|
||||
|
||||
Reference in New Issue
Block a user