calypsomodem: use ofono_call initializer
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 1 Feb 2011 17:12:45 +0000 (15:12 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Feb 2011 17:31:11 +0000 (18:31 +0100)
drivers/calypsomodem/voicecall.c

index 01be990..fed442c 100644 (file)
@@ -314,7 +314,7 @@ static void cpi_notify(GAtResult *result, gpointer user_data)
                g_at_chat_send(vd->chat, "AT%N0187", none_prefix,
                                NULL, NULL, NULL);
 
-       memset(&call, 0, sizeof(call));
+       ofono_call_init(&call);
 
        switch (msgtype) {
        case 0: