diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-10-06 18:01:40 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-06 17:27:20 +0200 |
commit | f1be4b2375a12645643ad40d7c172ecd9147b834 (patch) | |
tree | 01e616f3e2dad2f30357929b9dec2874be31252e /src/ussd.c | |
parent | 84888e9fa71952effe9e11ce17c8e38b23bd32d6 (diff) | |
download | ofono-f1be4b2375a12645643ad40d7c172ecd9147b834.tar.bz2 |
ussd: check g_try_new0 return value
Diffstat (limited to 'src/ussd.c')
-rw-r--r-- | src/ussd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |