1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r12797: check for a error

metze
This commit is contained in:
Stefan Metzmacher 2006-01-09 17:43:48 +00:00 committed by Gerald (Jerry) Carter
parent ba97e7c06a
commit ed4fbfcf3e

View File

@ -405,9 +405,10 @@ static uint32_t thread_get_task_id(void)
static void thread_log_task_id(int fd) static void thread_log_task_id(int fd)
{ {
char *s; char *s= NULL;
asprintf(&s, "thread %u: ", (uint32_t)pthread_self()); asprintf(&s, "thread %u: ", (uint32_t)pthread_self());
if (!s) return;
write(fd, s, strlen(s)); write(fd, s, strlen(s));
free(s); free(s);
} }