libril: initialise RIL_CallForwardInfo to 0 when requesting status
authorDanny Wood <danwood76@gmail.com>
Fri, 10 Sep 2021 14:15:05 +0000 (15:15 +0100)
committerDanny Wood <danwood76@gmail.com>
Fri, 10 Sep 2021 14:47:46 +0000 (15:47 +0100)
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

index ad24bf3c4c3cb292af44923a7cc587f678499aee..0e7ebde272ebd15d94def35a5f2cfe3802f87817 100644 (file)
@@ -679,7 +679,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;