diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-02-01 15:12:48 -0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-02-01 18:31:36 +0100 |
commit | 641a6d98be63584b74fde2f0616ab42ddd2bcc6f (patch) | |
tree | 2c89b4e6470d81067a58f842eb8fee11aeff0b52 /drivers | |
parent | a6d15c6a642acca73519fd14910a69e3d506c82d (diff) | |
download | ofono-641a6d98be63584b74fde2f0616ab42ddd2bcc6f.tar.bz2 |
ifxmodem: use ofono_call initializer
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ifxmodem/voicecall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ifxmodem/voicecall.c b/drivers/ifxmodem/voicecall.c index 716652cb..e7f72fc9 100644 --- a/drivers/ifxmodem/voicecall.c +++ b/drivers/ifxmodem/voicecall.c @@ -87,10 +87,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 = ofono_voicecall_get_next_callid(vc); call->type = type; call->direction = direction; |