Index: src/hg/hgTables/custom.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/custom.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -b -B -U 4 -r1.44 -r1.45
--- src/hg/hgTables/custom.c	12 Apr 2010 05:32:51 -0000	1.44
+++ src/hg/hgTables/custom.c	13 Apr 2010 04:42:00 -0000	1.45
@@ -563,9 +563,9 @@
 char *type = ct->tdb->type;
 if (startsWithWord("makeItems", type))
     {
     struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH);
-    doTabOutDb(CUSTOM_TRASH, ct->dbTableName, f, conn, fields);
+    doTabOutDb(CUSTOM_TRASH, db, ct->dbTableName, track->tableName, f, conn, fields);
     hFreeConn(&conn);
     }
 else
     doTabOutBedLike(ct, track, conn, fields, f);

