mirror of git://git.sysmocom.de/ofono
voicecall: check g_try_new0 return value
This commit is contained in:
parent
ea51479fcd
commit
7a36cbfd70
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue