summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIra Cooper <samba@ira.wakeful.net>2012-01-05 17:13:27 -0800
committerJeremy Allison <jra@samba.org>2012-01-06 04:16:41 +0100
commit7b42ceb414d3e14c411dd95dcd0b200113fe1191 (patch)
tree3f4fe478bff33c8a54852912ac69e08c75c641f2 /lib
parente8a7d9c822ae4be4533f9e34885816a5b7831154 (diff)
downloadsamba-7b42ceb414d3e14c411dd95dcd0b200113fe1191.tar.gz
samba-7b42ceb414d3e14c411dd95dcd0b200113fe1191.tar.bz2
samba-7b42ceb414d3e14c411dd95dcd0b200113fe1191.zip
Fix compile when TDB_TRACE is enabled.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jan 6 04:16:41 CET 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/tdb/common/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c
index c0f934ab83..fc1f5608fa 100644
--- a/lib/tdb/common/tdb.c
+++ b/lib/tdb/common/tdb.c
@@ -1003,7 +1003,7 @@ bool tdb_write_all(int fd, const void *buf, size_t count)
#ifdef TDB_TRACE
static void tdb_trace_write(struct tdb_context *tdb, const char *str)
{
- if (!tdb_write_alltdb->tracefd, str, strlen(str)) {
+ if (!tdb_write_all(tdb->tracefd, str, strlen(str))) {
close(tdb->tracefd);
tdb->tracefd = -1;
}