src/hg/utils/refSeqGet/refSeqVerInfo.c 1.2
1.2 2009/11/30 17:54:31 markd
fixed error detected in optimized compile
Index: src/hg/utils/refSeqGet/refSeqVerInfo.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/utils/refSeqGet/refSeqVerInfo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 4 -r1.1 -r1.2
--- src/hg/utils/refSeqGet/refSeqVerInfo.c 23 Nov 2009 02:56:20 -0000 1.1
+++ src/hg/utils/refSeqGet/refSeqVerInfo.c 30 Nov 2009 17:54:31 -0000 1.2
@@ -136,12 +136,13 @@
{
struct hash *refSeqVerInfoTbl = hashNew(18);
struct lineFile *lf = lineFileOpen(accList, TRUE);
int errCnt = 0;
-char **row;
-while (lineFileNextReal(lf, row))
+char *line;
+while (lineFileNextReal(lf, &line))
{
- if (fromFileAdd(refSeqVerInfoTbl, refSeqVerInfoNewFile(row[0]), conn) == refSeqVerInfoError)
+ char *acc = trimSpaces(line);
+ if (fromFileAdd(refSeqVerInfoTbl, refSeqVerInfoNewFile(acc), conn) == refSeqVerInfoError)
errCnt++;
}
lineFileClose(&lf);
if (errCnt > 0)