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
tirimbino
Danny Wood 3 years ago
parent 7cce6385ec
commit 538dcfca26
No known key found for this signature in database
GPG Key ID: DB2BBEB706948088
  1. 2
      ril/libril/ril_service.cpp

@ -679,7 +679,7 @@ bool dispatchCallForwardStatus(int serial, int slotId, int request,
return false; return false;
} }
RIL_CallForwardInfo cf; RIL_CallForwardInfo cf = {};
cf.status = (int) callInfo.status; cf.status = (int) callInfo.status;
cf.reason = callInfo.reason; cf.reason = callInfo.reason;
cf.serviceClass = callInfo.serviceClass; cf.serviceClass = callInfo.serviceClass;

Loading…
Cancel
Save