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:
66f359d
)
Don't allow elements without any name
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 10 Aug 2008 09:25:53 +0000
(11:25 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 10 Aug 2008 09:25:53 +0000
(11:25 +0200)
src/element.c
patch
|
blob
|
history
diff --git
a/src/element.c
b/src/element.c
index
ff66bc0
..
5e1bea5
100644
(file)
--- a/
src/element.c
+++ b/
src/element.c
@@
-623,8
+623,11
@@
int connman_element_register(struct connman_element *element,
__connman_element_load(element);
- if (element->name == NULL)
+ if (element->name == NULL)
{
element->name = g_strdup(type2string(element->type));
+ if (element->name == NULL)
+ return -EINVAL;
+ }
element->parent = parent;