projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f62360d
)
service: Check for settings list being non-NULL
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 12 Apr 2012 09:54:32 +0000
(12:54 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Thu, 12 Apr 2012 10:55:53 +0000
(13:55 +0300)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
c51f598
..
bfd8c7e
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-5627,7
+5627,8
@@
struct connman_service * __connman_service_create_from_network(struct connman_ne
auto_connect_types = connman_setting_get_uint_list("DefaultAutoConnectTechnologies");
service->autoconnect = FALSE;
- for (i = 0; auto_connect_types[i] != 0; i += 1) {
+ for (i = 0; auto_connect_types != NULL &&
+ auto_connect_types[i] != 0; i++) {
if (service->type == auto_connect_types[i]) {
service->autoconnect = TRUE;
break;