device: Fix uninitialized value usage
authorIldar Kamaletdinov <i.kamaletdinov@omp.ru>
Sat, 7 May 2022 17:35:05 +0000 (20:35 +0300)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitf85bed24b2a050d2b525b03aa329a9041f640229
tree86f9aa5af92eba543eb84639b62028638f0511cc
parent34ba6f5be3a7f36b1200cde01f05cf71b787ebd8
device: Fix uninitialized value usage

Definitely `dbus_bool_t b;` must be initialized before comparing it
with current value.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c