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:
27118ae
)
Don't try to connect when service list is empty
author
Samuel Ortiz
<sameo@linux.intel.com>
Sat, 24 Jul 2010 09:49:26 +0000
(11:49 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 26 Jul 2010 10:22:01 +0000
(12:22 +0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
038d1a0
..
8aa0634
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-1574,6
+1574,8
@@
__connman_service_connect_type(enum connman_service_type type)
* the first available one if we have no type.
*/
iter = g_sequence_get_begin_iter(service_list);
+ if (g_sequence_iter_is_end(iter))
+ return NULL;
service = g_sequence_get(iter);
/*