Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit f83507a

Browse files
committed
Fixed cycle caused by incorrectly reregistering break event
1 parent 1d0f10e commit f83507a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

events.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ int equeue_create_inplace(struct equeue *q,
4646
q->free = (struct event*)buffer;
4747
q->queue = 0;
4848
q->next_id = 42;
49-
q->break_ = (struct event){0};
49+
q->break_ = (struct event){
50+
.id = 0,
51+
.period = -1,
52+
};
5053

5154
if (q->free) {
5255
for (unsigned i = 0; i < count-1; i++) {

0 commit comments

Comments
 (0)