mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: cmd_info: if there is no profile, it's a bug...
...but we should not go further Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -320,6 +320,8 @@ ratbag_cmd_info(struct ratbag *ratbag, uint32_t flags, int argc, char **argv)
|
||||
for (i = 0; i < num_profiles; i++) {
|
||||
int dpi, rate;
|
||||
profile = ratbag_device_get_profile_by_index(device, i);
|
||||
if (!profile)
|
||||
continue;
|
||||
|
||||
printf(" Profile %d%s\n", i,
|
||||
ratbag_profile_is_active(profile) ? " (active)" : "");
|
||||
|
||||
Reference in New Issue
Block a user