From d851283fe6bef2de34ef75dfbdd9db27ba672bd6 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Fri, 10 Sep 2021 15:15:05 +0100 Subject: [PATCH] msm8974-common: libril: initialise RIL_CallForwardInfo to 0 when requesting status Some devices have extra pointers in this structure that if non-zero causes libsec-ril.so to segfault Change-Id: I9fd07a4747ef0fb1388ebbec472f2dda8dea4003 --- ril/libril/ril_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 ril/libril/ril_service.cpp diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp old mode 100755 new mode 100644 index 18062f9..a76cf38 --- a/ril/libril/ril_service.cpp +++ b/ril/libril/ril_service.cpp @@ -708,7 +708,7 @@ bool dispatchCallForwardStatus(int serial, int slotId, int request, return false; } - RIL_CallForwardInfo cf; + RIL_CallForwardInfo cf = {}; cf.status = (int) callInfo.status; cf.reason = callInfo.reason; cf.serviceClass = callInfo.serviceClass;