From f83507aff2d71ca399aefb0039b03969390aaee3 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 15 Jun 2016 22:56:39 -0500 Subject: [PATCH] Fixed cycle caused by incorrectly reregistering break event --- events.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/events.c b/events.c index a428e0e..36fc738 100644 --- a/events.c +++ b/events.c @@ -46,7 +46,10 @@ int equeue_create_inplace(struct equeue *q, q->free = (struct event*)buffer; q->queue = 0; q->next_id = 42; - q->break_ = (struct event){0}; + q->break_ = (struct event){ + .id = 0, + .period = -1, + }; if (q->free) { for (unsigned i = 0; i < count-1; i++) {