Skip to content

Commit

Permalink
init variables
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Oct 25, 2024
1 parent 475c1f2 commit cf592a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/darwin/dispatch_queue_event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ static struct aws_event_loop *aws_event_loop_new_dispatch_queue_with_options(
AWS_PRECONDITION(options->clock);

struct aws_event_loop *loop = aws_mem_calloc(alloc, 1, sizeof(struct aws_event_loop));
struct dispatch_loop *dispatch_loop = NULL;

AWS_LOGF_DEBUG(AWS_LS_IO_EVENT_LOOP, "id=%p: Initializing dispatch_queue event-loop", (void *)loop);
if (aws_event_loop_init_base(loop, alloc, options->clock)) {
goto clean_up;
}

struct dispatch_loop *dispatch_loop = aws_mem_calloc(alloc, 1, sizeof(struct dispatch_loop));
dispatch_loop = aws_mem_calloc(alloc, 1, sizeof(struct dispatch_loop));
aws_ref_count_init(&dispatch_loop->ref_count, loop, s_dispatch_event_loop_destroy);

dispatch_loop->dispatch_queue_id = s_get_unique_dispatch_queue_id(alloc);
Expand Down

0 comments on commit cf592a7

Please sign in to comment.