src/hg/instinct/lib/featuresLib.c 1.31

1.31 2010/04/12 17:16:10 jsanborn
added raDb functionality
Index: src/hg/instinct/lib/featuresLib.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/lib/featuresLib.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -b -B -U 4 -r1.30 -r1.31
--- src/hg/instinct/lib/featuresLib.c	4 Jun 2009 03:42:49 -0000	1.30
+++ src/hg/instinct/lib/featuresLib.c	12 Apr 2010 17:16:10 -0000	1.31
@@ -841,19 +841,18 @@
 return raList;
 }
 
 struct column *getColumns(struct sqlConnection *conn, char *raName, char *patDb)
-/* Return list of columns for big table. */
 {
 if (!raName)
     return NULL;
-struct column *col, *colList = NULL;
-struct hash *raList = readRa(raName), *raHash = NULL;
+struct hash *raHash, *raList = readRa(raName);
 
 /* Create built-in columns. */
 if (raList == NULL)
     errAbort("Couldn't find anything from %s", raName);
 
+struct column *col, *colList = NULL;
 for (raHash = raList; raHash != NULL; raHash = raHash->next)
     {
     AllocVar(col);
     col->settings = raHash;