summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
diff options
context:
space:
mode:
authorHenrique Dante de Almeida <hdante@profusion.mobi>2012-05-08 16:20:48 -0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-09 17:14:27 +0300
commit92de4e93503fdbae2185ba3cd9fbf10f5a83efab (patch)
tree8b31f8beae4b845d5a754aaf08b52ce6bf14da8a /plugins/ofono.c
parentd0c62ab0e5add1ae4a0e2effb45441ca0d968f65 (diff)
downloadconnman-92de4e93503fdbae2185ba3cd9fbf10f5a83efab.tar.gz
connman-92de4e93503fdbae2185ba3cd9fbf10f5a83efab.tar.bz2
connman-92de4e93503fdbae2185ba3cd9fbf10f5a83efab.zip
ofono: Fix uninitialized value
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r--plugins/ofono.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c
index f65d78a6..b607c9b4 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -43,8 +43,6 @@
#include "mcc.h"
-#define uninitialized_var(x) x = x
-
#define OFONO_SERVICE "org.ofono"
#define OFONO_MANAGER_INTERFACE OFONO_SERVICE ".Manager"
@@ -937,7 +935,7 @@ static connman_bool_t ready_to_create_device(struct modem_data *modem)
static void create_device(struct modem_data *modem)
{
struct connman_device *device;
- char *uninitialized_var(ident);
+ char *ident = NULL;
DBG("%s", modem->path);