From 2386b677cb7223094b3348d852514df06d39b16b Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Jun 2013 13:41:09 +0200 Subject: [PATCH] service: Initialize tech_data tech_data is allocated on the stack and is therefore not initilized with NULL. --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.7.4