summaryrefslogtreecommitdiffstats
path: root/src/ussd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ussd.c')
-rw-r--r--src/ussd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ussd.c b/src/ussd.c
index aad7d32c..c80d2473 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;