From: Daniel Wagner <[email protected]>

---
 plugins/bluetooth.c      | 2 +-
 plugins/dundee.c         | 2 +-
 plugins/hh2serial-gps.c  | 2 +-
 plugins/iospm.c          | 2 +-
 plugins/iwmxsdk.c        | 2 +-
 plugins/l2tp.c           | 2 +-
 plugins/loopback.c       | 6 +++---
 plugins/ofono.c          | 6 +++---
 plugins/openvpn.c        | 2 +-
 plugins/pacrunner.c      | 2 +-
 plugins/pptp.c           | 2 +-
 plugins/session_policy.c | 2 +-
 12 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 47343bb..459c7d3 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -65,7 +65,7 @@
 
 #define TIMEOUT 5000
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 static GHashTable *bluetooth_devices = NULL;
 static GHashTable *bluetooth_networks = NULL;
diff --git a/plugins/dundee.c b/plugins/dundee.c
index 0a48db1..7208e6b 100644
--- a/plugins/dundee.c
+++ b/plugins/dundee.c
@@ -50,7 +50,7 @@
 
 #define TIMEOUT 40000
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 static GHashTable *dundee_devices = NULL;
 
diff --git a/plugins/hh2serial-gps.c b/plugins/hh2serial-gps.c
index 20521b0..eb73d6b 100644
--- a/plugins/hh2serial-gps.c
+++ b/plugins/hh2serial-gps.c
@@ -31,7 +31,7 @@
 #include <connman/device.h>
 #include <connman/log.h>
 
-static struct connman_device *hh2serial_device;
+static struct connman_device *hh2serial_device = NULL;
 
 static int set_reg(char *key, char *value)
 {
diff --git a/plugins/iospm.c b/plugins/iospm.c
index 1ea56a9..de0e220 100644
--- a/plugins/iospm.c
+++ b/plugins/iospm.c
@@ -35,7 +35,7 @@
 #define IOSPM_BLUETOOTH                "/com/intel/mid/ospm/bluetooth"
 #define IOSPM_FLIGHT_MODE      "/com/intel/mid/ospm/flight_mode"
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 static void send_indication(const char *path, connman_bool_t enabled)
 {
diff --git a/plugins/iwmxsdk.c b/plugins/iwmxsdk.c
index 06de4c3..174adfd 100644
--- a/plugins/iwmxsdk.c
+++ b/plugins/iwmxsdk.c
@@ -57,7 +57,7 @@ static struct wmxsdk *deviceid_to_wmxsdk(WIMAX_API_DEVICE_ID 
*device_id)
        return NULL;
 }
 
-static WIMAX_API_DEVICE_ID g_api;
+static WIMAX_API_DEVICE_ID g_api = 0;
 
 
 /*
diff --git a/plugins/l2tp.c b/plugins/l2tp.c
index dfb56d9..84e0530 100644
--- a/plugins/l2tp.c
+++ b/plugins/l2tp.c
@@ -108,7 +108,7 @@ struct {
        { "L2TP.NoVJ", "no-vj-comp", OPT_PPPD, NULL, OPT_BOOL },
 };
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 static DBusMessage *l2tp_get_sec(struct connman_task *task,
                        DBusMessage *msg, void *user_data)
diff --git a/plugins/loopback.c b/plugins/loopback.c
index a111eee..1a11031 100644
--- a/plugins/loopback.c
+++ b/plugins/loopback.c
@@ -41,10 +41,10 @@
 #include <connman/log.h>
 #include <connman/inet.h>
 
-static in_addr_t loopback_address;
-static in_addr_t loopback_netmask;
+static in_addr_t loopback_address = 0;
+static in_addr_t loopback_netmask = 0;
 
-static char system_hostname[HOST_NAME_MAX + 1];
+static char system_hostname[HOST_NAME_MAX + 1] = "";
 
 static void create_hostname(void)
 {
diff --git a/plugins/ofono.c b/plugins/ofono.c
index 2122b85..70bc6c5 100644
--- a/plugins/ofono.c
+++ b/plugins/ofono.c
@@ -125,10 +125,10 @@ enum ofono_api {
  * updating CdmaConnectionManager settings properties.
  */
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
-static GHashTable *modem_hash;
-static GHashTable *context_hash;
+static GHashTable *modem_hash = NULL;
+static GHashTable *context_hash = NULL;
 
 struct network_context {
        char *path;
diff --git a/plugins/openvpn.c b/plugins/openvpn.c
index 8df8a3f..4eb2a77 100644
--- a/plugins/openvpn.c
+++ b/plugins/openvpn.c
@@ -43,7 +43,7 @@
 
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 struct {
        const char *cm_opt;
diff --git a/plugins/pacrunner.c b/plugins/pacrunner.c
index 418dce2..3743194 100644
--- a/plugins/pacrunner.c
+++ b/plugins/pacrunner.c
@@ -49,7 +49,7 @@ struct proxy_data {
        char *url;
 };
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 static dbus_bool_t daemon_running = FALSE;
 
 static struct connman_service *default_service = NULL;
diff --git a/plugins/pptp.c b/plugins/pptp.c
index 7fafc05..f1007d0 100644
--- a/plugins/pptp.c
+++ b/plugins/pptp.c
@@ -73,7 +73,7 @@ struct {
        { "PPTP.NoVJ", "no-vj-comp", NULL, OPT_BOOL },
 };
 
-static DBusConnection *connection;
+static DBusConnection *connection = NULL;
 
 static DBusMessage *pptp_get_sec(struct connman_task *task,
                                DBusMessage *msg, void *user_data)
diff --git a/plugins/session_policy.c b/plugins/session_policy.c
index 98d984a..8f1e7ee 100644
--- a/plugins/session_policy.c
+++ b/plugins/session_policy.c
@@ -33,7 +33,7 @@
 #include <connman/log.h>
 #include <connman/session.h>
 
-static GHashTable *config_hash;
+static GHashTable *config_hash = NULL;
 
 static struct connman_session_config *policy_create(
                                        struct connman_session *session)
-- 
1.8.0.rc0

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to