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:
72736b7
)
Initialize the element reference count
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 25 Dec 2008 20:57:52 +0000
(21:57 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 25 Dec 2008 20:58:14 +0000
(21:58 +0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
7bda8c2
..
22c6927
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-356,6
+356,8
@@
struct connman_device *connman_device_create(const char *node,
DBG("device %p", device);
+ device->element.refcount = 1;
+
device->element.name = g_strdup(node);
device->element.type = CONNMAN_ELEMENT_TYPE_DEVICE;
device->element.index = -1;