projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e13cb
)
gisi/verify: check g_try_new0 return value
author
Pekka Pessi
<Pekka.Pessi@nokia.com>
Wed, 6 Oct 2010 15:01:39 +0000
(18:01 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 6 Oct 2010 15:26:26 +0000
(17:26 +0200)
gisi/verify.c
patch
|
blob
|
history
diff --git
a/gisi/verify.c
b/gisi/verify.c
index
fae9d13
..
322f1d1
100644
(file)
--- a/
gisi/verify.c
+++ b/
gisi/verify.c
@@
-116,6
+116,9
@@
GIsiRequest *g_isi_verify(GIsiClient *client, GIsiVerifyFunc func,
struct verify_data *data = g_try_new0(struct verify_data, 1);
GIsiRequest *req = NULL;
+ if (data == NULL)
+ return NULL;
+
data->func = func;
data->data = opaque;