Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 28, 2012
1 parent d65eaf8 commit 9dc2c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skynet-src/skynet_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ skynet_handle_init(int harbor) {
struct handle_storage * s = malloc(sizeof(*H));
s->slot_size = DEFAULT_SLOT_SIZE;
s->slot = malloc(s->slot_size * sizeof(struct skynet_context *));
memset(s->slot, 0, s->slot_size * sizeof(struct handle_slot *));
memset(s->slot, 0, s->slot_size * sizeof(struct skynet_context *));

rwlock_init(&s->lock);
// reserve 0 for system
Expand Down

0 comments on commit 9dc2c04

Please sign in to comment.