summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2009-10-31 15:42:54 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2009-10-31 15:42:54 +0800
commit24a357dc12d3bbddeade7bf5c2d660ffa60ca6c4 (patch)
tree667ef5cf71d13105f9d8f7b71779a39ed7066520
parentb39acd6f686cbda6448d86d169cbcb4497d2e9dd (diff)
milkway: fixed a crash in mw-poll
-rw-r--r--milkway/mw-poll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/milkway/mw-poll.c b/milkway/mw-poll.c
index ae04b21..25e2193 100644
--- a/milkway/mw-poll.c
+++ b/milkway/mw-poll.c
@@ -27,7 +27,7 @@ mw_poll_init(mw_poll_t *self,
{
if (!mw_object_init(&self->base, &type->base))
return NULL;
- self->fds = mw_hash_new(mw_pointer_hash, NULL, NULL, NULL);
+ self->fds = mw_hash_new(mw_pointer_hash, mw_pointer_equal, NULL, NULL);
if (!self->fds) {
MW_SUPER_FINALIZE(self, MW_POLL_TYPE)(&self->base);
return NULL;