mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-07-02 09:00:27 +08:00
指针未解引用
This commit is contained in:
2
server.c
2
server.c
@@ -328,7 +328,7 @@ void handle_accept(void *p) {
|
|||||||
}
|
}
|
||||||
printf("Break: recv %zd bytes\n", timer_pointer_of(p)->numbytes);
|
printf("Break: recv %zd bytes\n", timer_pointer_of(p)->numbytes);
|
||||||
} else puts("Error allocating buffer");
|
} else puts("Error allocating buffer");
|
||||||
timer_pointer_of(p)->thread = 0;
|
*(timer_pointer_of(p)->thread) = 0;
|
||||||
kill_thread(timer_pointer_of(p));
|
kill_thread(timer_pointer_of(p));
|
||||||
} else puts("Error accepting client");
|
} else puts("Error accepting client");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user