- Empty data can be appended to the list
Change-Id: Ia5fe990fa76b74acf5fbc978eaf3988511967d85
Signed-off-by: inkyun.kil <inkyun.kil@samsung.com>
em->bus_type = bus_type;
em->reg_id = subscription_id;
- system_event_list = g_list_append(system_event_list, em);
- *reg_id = subscription_id;
-
ret = ES_R_OK;
if (em->bus_type == G_BUS_TYPE_SESSION &&
}
}
}
+
+ if (ret == ES_R_OK) {
+ system_event_list = g_list_append(system_event_list, em);
+ *reg_id = subscription_id;
+ }
+
} else {
_E("dbus subscribe: error(%d)", subscription_id);
__destroy_eventmap(em);