From: Pekka Pessi <pekka.pe...@nokia.com> --- src/ussd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/ussd.c b/src/ussd.c index aad7d32..c80d247 100644 --- a/src/ussd.c +++ b/src/ussd.c @@ -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; -- 1.7.0.4 _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono