summaryrefslogtreecommitdiffstats
path: root/drivers/atmodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-21 20:00:07 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-21 20:00:07 +0200
commit94d67b9c66bf012135ad27bf7d61dbf71702bcb8 (patch)
tree41036bfbda7ea77c4c296b064a0b49a996caea27 /drivers/atmodem
parent9bdc2b0a43067012b29a19de67e9d9abc0ab48cb (diff)
downloadofono-94d67b9c66bf012135ad27bf7d61dbf71702bcb8.tar.bz2
atmodem: Use g_try_new0 when checking for the result
Diffstat (limited to 'drivers/atmodem')
-rw-r--r--drivers/atmodem/gprs-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c
index df5b08b3..fc253f3a 100644
--- a/drivers/atmodem/gprs-context.c
+++ b/drivers/atmodem/gprs-context.c
@@ -266,7 +266,7 @@ static int at_gprs_context_probe(struct ofono_gprs_context *gc,
return -ENODEV;
}
- gcd = g_new0(struct gprs_context_data, 1);
+ gcd = g_try_new0(struct gprs_context_data, 1);
if (!gcd)
return -ENOMEM;