sixaxis: Fix crash caused by return of udev_device_get_property_value
authorMiao-chen Chou <mcchou@chromium.org>
Wed, 16 Sep 2020 22:34:53 +0000 (15:34 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:32 +0000 (19:08 +0530)
commit7f5abe1e890cfff5bd9d8d71af2bf96ad42d03b8
treeabc909d4a8dc2c52542b8a869fa93b2bd67e10ff
parent2a6ccad64ad5435fb60a753ef3a8016c4785738a
sixaxis: Fix crash caused by return of udev_device_get_property_value

This adds a NULL check before calling sscanf().

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
plugins/sixaxis.c