summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-06-07 11:41:09 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-10 06:48:12 (GMT)
commit2386b677cb7223094b3348d852514df06d39b16b (patch)
tree62b05dc254e81956c819d0597e3c919818bd67d7 /src
parent2476ce77a9a1a9d151a51d654191030115806bb9 (diff)
downloadconnman-2386b677cb7223094b3348d852514df06d39b16b.zip
connman-2386b677cb7223094b3348d852514df06d39b16b.tar.gz
connman-2386b677cb7223094b3348d852514df06d39b16b.tar.bz2
service: Initialize tech_data
tech_data is allocated on the stack and is therefore not initilized with NULL.
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 3d03b2c..5649788 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3435,7 +3435,7 @@ static void preferred_tech_add_by_type(gpointer data, gpointer user_data)
static GSequence* preferred_tech_list_get(void)
{
unsigned int *tech_array;
- struct preferred_tech_data tech_data;
+ struct preferred_tech_data tech_data = { 0, };
int i;
tech_array = connman_setting_get_uint_list("PreferredTechnologies");