Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

allow for iterative removal of items #123

Merged
merged 1 commit into from

2 participants

@xekoukou
Collaborator

No description provided.

@hintjens hintjens merged commit 5a96d28 into zeromq:master
@hintjens
Owner

Nice! Can I invite you to join the CZMQ maintainers' team?

@xekoukou
Collaborator
@hintjens
Owner

Welcome aboard :-) Please read http://rfc.zeromq.org/spec:22 if you didn't already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 21, 2013
  1. zlist_remove allows for iterative removal of items

    Apostolis Xekoukoulotakis authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/zlist.c
View
4 src/zlist.c
@@ -262,9 +262,11 @@ zlist_remove (zlist_t *self, void *item)
if (node->next == NULL)
self->tail = prev;
+ if (self->cursor == node)
+ self->cursor = prev;
+
free (node);
self->size--;
- self->cursor = NULL;
}
}
Something went wrong with that request. Please try again.