diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-01-09 17:43:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:56 -0500 |
commit | 6d0beb088565abeaca53e4346dc94940c7de398e (patch) | |
tree | 5d36fa834abe6ccad5f6c33f687b215006a28c29 /source4/smbd | |
parent | f0e3a0312d77086015e5662494b6be24a51b0091 (diff) | |
download | samba-6d0beb088565abeaca53e4346dc94940c7de398e.tar.gz samba-6d0beb088565abeaca53e4346dc94940c7de398e.tar.bz2 samba-6d0beb088565abeaca53e4346dc94940c7de398e.zip |
r12797: check for a error
metze
(This used to be commit ed4fbfcf3e5b7133e73ee031ad5c68659690e2b1)
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/process_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c index b79c2f76b5..af111362b2 100644 --- a/source4/smbd/process_thread.c +++ b/source4/smbd/process_thread.c @@ -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); } |