From: Marcel Holtmann Date: Thu, 25 Dec 2008 20:57:52 +0000 (+0100) Subject: Initialize the element reference count X-Git-Tag: 2.0_alpha~4330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1440a12d34f626a3041838af3001a894bc2089c8;p=framework%2Fconnectivity%2Fconnman.git Initialize the element reference count --- diff --git a/src/device.c b/src/device.c index 7bda8c2..22c6927 100644 --- 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;