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
This commit is contained in:
Danny Wood 2021-09-10 15:15:05 +01:00 committed by Kevin F. Haggerty
parent 6a2957e85e
commit d851283fe6
No known key found for this signature in database
GPG Key ID: 6D95512933112729

2
ril/libril/ril_service.cpp Executable file → Normal file
View File

@ -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;