projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0470319
)
huaweimodem: use ofono_call initializer
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Tue, 1 Feb 2011 17:12:47 +0000
(15:12 -0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 1 Feb 2011 17:31:19 +0000
(18:31 +0100)
drivers/huaweimodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/huaweimodem/voicecall.c
b/drivers/huaweimodem/voicecall.c
index
a30513a
..
53377d9
100644
(file)
--- 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_new
0
(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;