diff options
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r-- | drivers/huaweimodem/voicecall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c index a30513a2..53377d9c 100644 --- a/drivers/huaweimodem/voicecall.c +++ b/drivers/huaweimodem/voicecall.c @@ -56,10 +56,12 @@ static struct ofono_call *create_call(struct ofono_voicecall *vc, int type, struct ofono_call *call; /* Generate a call structure for the waiting call */ - call = g_try_new0(struct ofono_call, 1); + call = g_try_new(struct ofono_call, 1); if (call == NULL) return NULL; + ofono_call_init(call); + call->id = id; call->type = type; call->direction = direction; |