From 1440a12d34f626a3041838af3001a894bc2089c8 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 25 Dec 2008 21:57:52 +0100 Subject: [PATCH] Initialize the element reference count --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.7.4