From 732f2de08d9ae84545157b25bac5a875437980c4 Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Mon, 3 Jan 2022 13:14:42 +0900 Subject: [PATCH] Fix Coverity in request_haptic_method() Declaring variable reply_val without initializer. Change-Id: I6ed79e09bc9e84333583afdace2576ae7bf2d44c Signed-off-by: Hyotaek Shim --- src/auto-test/haptic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto-test/haptic.c b/src/auto-test/haptic.c index 101f8da..49cd1ef 100644 --- a/src/auto-test/haptic.c +++ b/src/auto-test/haptic.c @@ -30,7 +30,7 @@ static bool request_haptic_method(const char *method, GVariant *param, int *out_val) { GVariant *reply; - int reply_val, ret_dbus; + int reply_val = 0, ret_dbus; bool ret = FALSE; ret_dbus = gdbus_call_sync_with_reply(VIBRATOR_BUS_NAME, -- 2.7.4