voicecall: check g_try_new0 return value

This commit is contained in:
Pekka Pessi 2010-10-06 17:52:19 +03:00 committed by Denis Kenzior
parent ea51479fcd
commit 7a36cbfd70
1 changed files with 3 additions and 0 deletions

View File

@ -2281,6 +2281,9 @@ int __ofono_voicecall_dial(struct ofono_voicecall *vc,
*/
req = g_try_new0(struct dial_request, 1);
if (req == NULL)
return -ENOMEM;
req->message = g_strdup(message);
req->icon_id = icon_id;
req->interaction = interaction;