Hi Zhenhua,
On 08/30/2010 01:28 AM, Zhenhua Zhang wrote:
To avoid signal 11 if no dial_req exists.
---
src/voicecall.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 6ad58ad..1313129 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -220,6 +220,9 @@ static void dial_request_finish(struct ofono_voicecall *vc, gboolean
callback)
{
struct dial_request *dial_req = vc->dial_req;
+ if (dial_req == NULL)
+ return;
+
if (callback && dial_req->cb)
dial_req->cb(dial_req->call ? dial_req->call->call : NULL,
dial_req->user_data);
I fixed it slightly differently. Let me know if it still crashes.
Regards,
-Denis