summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-22 00:20:44 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-22 00:21:06 +0200
commitdf2d0dc805ae86d371fc0d74033c40a458a8ebf2 (patch)
treee202291a7ea071e4ff8e58f703aa4e30d6306a3c /drivers
parent3d3c8b32ba9f6f35138d3441dc571f28de534045 (diff)
ifxmodem: Use g_try_new0 when checking for the result
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ifxmodem/gprs-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ifxmodem/gprs-context.c b/drivers/ifxmodem/gprs-context.c
index 630e1aa6..4369a240 100644
--- a/drivers/ifxmodem/gprs-context.c
+++ b/drivers/ifxmodem/gprs-context.c
@@ -410,7 +410,7 @@ static int ifx_gprs_context_probe(struct ofono_gprs_context *gc,
if (!g_at_chat_get_slave(chat))
return -EINVAL;
- gcd = g_new0(struct gprs_context_data, 1);
+ gcd = g_try_new0(struct gprs_context_data, 1);
if (!gcd)
return -ENOMEM;