1
0
forked from drath/libratbag

driver-hidpp20: zero initialize a struct

This fixes a clang-analyze warning about uninitialized value getting
stored later.
This commit is contained in:
Yaroslav Chvanov
2023-05-20 10:55:44 +03:00
parent 4d6f80de01
commit cf202eeeca

View File

@@ -684,7 +684,7 @@ hidpp20drv_update_led_8070_8071(struct ratbag_led *led, struct ratbag_profile* p
struct hidpp20drv_data *drv_data)
{
struct hidpp20_profile *h_profile;
struct hidpp20_led h_led_val;
struct hidpp20_led h_led_val = {0};
struct hidpp20_led *h_led = &h_led_val;
if (drv_data->capabilities & HIDPP_CAP_ONBOARD_PROFILES_8100) {