mirror of git://git.sysmocom.de/ofono
ussd: check g_try_new0 return value
This commit is contained in:
parent
84888e9fa7
commit
f1be4b2375
|
@ -888,6 +888,9 @@ int __ofono_ussd_initiate(struct ofono_ussd *ussd, int dcs,
|
|||
return -EBUSY;
|
||||
|
||||
req = g_try_new0(struct ussd_request, 1);
|
||||
if (req == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
req->cb = cb;
|
||||
req->user_data = user_data;
|
||||
|
||||
|
|
Loading…
Reference in New Issue