ofono: Fix uninitialized value
authorHenrique Dante de Almeida <hdante@profusion.mobi>
Tue, 8 May 2012 19:20:48 +0000 (16:20 -0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 9 May 2012 14:14:27 +0000 (17:14 +0300)
plugins/ofono.c

index f65d78a..b607c9b 100644 (file)
@@ -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);