diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index 0f011f0..00f59d7 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
GQueue *responses;
GSList *events;
guint next_cmd_id;
- guint next_evt_id;
GDestroyNotify destroy;
gpointer destroy_user_data;
gboolean stale;
GAttribNotifyFunc func, gpointer user_data,
GDestroyNotify notify)
{
+ static guint next_evt_id = 0;
struct event *event;
event = g_try_new0(struct event, 1);
event->func = func;
event->user_data = user_data;
event->notify = notify;
- event->id = ++attrib->next_evt_id;
+ event->id = ++next_evt_id;
attrib->events = g_slist_append(attrib->events, event);