src/hg/lib/hdb.c 1.397

1.397 2009/03/17 04:24:28 kent
Making hFindBed12FieldsAndBinWithConn static. Initializing empty strings a place where it might have been missed, and would certainly do no harm to add.
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.396
retrieving revision 1.397
diff -b -B -U 4 -r1.396 -r1.397
--- src/hg/lib/hdb.c	28 Feb 2009 00:38:09 -0000	1.396
+++ src/hg/lib/hdb.c	17 Mar 2009 04:24:28 -0000	1.397
@@ -2521,9 +2521,9 @@
 hFreeConn(&conn);
 return(gotIndex);
 }
 
-boolean hFindBed12FieldsAndBinWithConn(struct sqlConnection *conn, char *table,
+static boolean hFindBed12FieldsAndBinWithConn(struct sqlConnection *conn, char *table,
 	char retChrom[HDB_MAX_FIELD_STRING],
 	char retStart[HDB_MAX_FIELD_STRING],
 	char retEnd[HDB_MAX_FIELD_STRING],
 	char retName[HDB_MAX_FIELD_STRING],
@@ -2548,8 +2548,10 @@
 
 db = sqlGetDatabase(conn);
 
 /* Set field names to empty strings */
+retChrom[0] = 0;
+retStart[0] = 0;
 retEnd[0] = 0;
 retName[0] = 0;
 retScore[0] = 0;
 retStrand[0] = 0;