projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2476ce7
)
service: Initialize tech_data
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Fri, 7 Jun 2013 11:41:09 +0000
(13:41 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 10 Jun 2013 06:48:12 +0000
(09:48 +0300)
tech_data is allocated on the stack and is therefore not initilized
with NULL.
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
3d03b2c
..
5649788
100644
(file)
--- 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");