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:
1375f07
)
Add debug information for missing parent element
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 19 May 2009 04:06:39 +0000
(21:06 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 19 May 2009 04:06:39 +0000
(21:06 -0700)
src/element.c
patch
|
blob
|
history
diff --git
a/src/element.c
b/src/element.c
index
2010f45
..
ec27d69
100644
(file)
--- a/
src/element.c
+++ b/
src/element.c
@@
-1123,6
+1123,12
@@
static void register_element(gpointer data, gpointer user_data)
__connman_element_unlock(element);
+ if (node == NULL) {
+ connman_error("Element registration for %s failed",
+ element->path);
+ return;
+ }
+
DBG("element %p path %s", element, element->path);
g_node_append_data(node, element);