From 9a03063aee0560fd5c8978efda378011eac1a11f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 6 Feb 2011 01:53:58 +0100 Subject: [PATCH] fix event handler list initialization --- ubusd_obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubusd_obj.c b/ubusd_obj.c index 15f43ad..ffd5330 100644 --- a/ubusd_obj.c +++ b/ubusd_obj.c @@ -98,6 +98,7 @@ struct ubus_object *ubusd_create_object_internal(struct ubus_object_type *type, obj->type = type; INIT_LIST_HEAD(&obj->list); + INIT_LIST_HEAD(&obj->events); if (type) type->refcount++; @@ -142,7 +143,6 @@ struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr obj->client = cl; list_add(&obj->list, &cl->objects); - INIT_LIST_HEAD(&obj->events); return obj; -- 2.11.0