1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-08 18:10:24 +08:00

指针未解引用

This commit is contained in:
fumiama
2021-05-04 15:50:50 +08:00
parent b1905bd508
commit 960ad0154d

View File

@@ -328,7 +328,7 @@ void handle_accept(void *p) {
}
printf("Break: recv %zd bytes\n", timer_pointer_of(p)->numbytes);
} else puts("Error allocating buffer");
timer_pointer_of(p)->thread = 0;
*(timer_pointer_of(p)->thread) = 0;
kill_thread(timer_pointer_of(p));
} else puts("Error accepting client");
}