mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r12797: check for a error
metze
This commit is contained in:
parent
ba97e7c06a
commit
ed4fbfcf3e
@ -405,9 +405,10 @@ static uint32_t thread_get_task_id(void)
|
||||
|
||||
static void thread_log_task_id(int fd)
|
||||
{
|
||||
char *s;
|
||||
char *s= NULL;
|
||||
|
||||
asprintf(&s, "thread %u: ", (uint32_t)pthread_self());
|
||||
if (!s) return;
|
||||
write(fd, s, strlen(s));
|
||||
free(s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user