diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-10-06 17:52:19 +0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-10-10 06:06:54 -0500 |
commit | 7a36cbfd70c30c90d3134a384061739c3381d4cb (patch) | |
tree | 3cc0a9bfa7fdf84a78de53639f7c8905108e08c1 /src | |
parent | ea51479fcd7724c8a6b15f810c779f78a98a2e80 (diff) | |
download | ofono-7a36cbfd70c30c90d3134a384061739c3381d4cb.tar.bz2 |
voicecall: check g_try_new0 return value
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 8be74872..7b5fe3bf 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -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; |