svn commit: samba r12797 - in branches/SAMBA_4_0/source/smbd: .
metze at samba.org
metze at samba.org
Mon Jan 9 17:43:48 GMT 2006
Author: metze
Date: 2006-01-09 17:43:48 +0000 (Mon, 09 Jan 2006)
New Revision: 12797
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12797
Log:
check for a error
metze
Modified:
branches/SAMBA_4_0/source/smbd/process_thread.c
Changeset:
Modified: branches/SAMBA_4_0/source/smbd/process_thread.c
===================================================================
--- branches/SAMBA_4_0/source/smbd/process_thread.c 2006-01-09 17:03:17 UTC (rev 12796)
+++ branches/SAMBA_4_0/source/smbd/process_thread.c 2006-01-09 17:43:48 UTC (rev 12797)
@@ -405,9 +405,10 @@
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);
}
More information about the samba-cvs
mailing list