src/hg/hgc/rnaFoldClick.c 1.8
1.8 2009/08/13 03:08:30 markd
fixed misuse of AllocVar macro detected by gcc 4.5
Index: src/hg/hgc/rnaFoldClick.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/rnaFoldClick.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 4 -r1.7 -r1.8
--- src/hg/hgc/rnaFoldClick.c 3 Sep 2008 19:19:08 -0000 1.7
+++ src/hg/hgc/rnaFoldClick.c 13 Aug 2009 03:08:30 -0000 1.8
@@ -181,9 +181,9 @@
/* make arrays for color formatting */
N = slCount(maf->components);
AllocArray(mafColorFormats, N);
for (i = 0; i < N; i++)
- mafColorFormats[i] = AllocArray(mafColorFormats[i], refLength);
+ AllocArray(mafColorFormats[i], refLength);
fold2pairingList(adjFold, refLength, &pairList);
for (mc = maf->components, i = 0; mc != NULL; mc = mc->next, i++)
markCompensatoryMutations(mc->text, referenceText, pairList, mafColorFormats[i]);