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

1.34 2010/05/07 21:18:54 jsanborn
fixed missing data drawing bug
Index: src/hg/instinct/lib/featuresLib.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/lib/featuresLib.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -b -B -U 4 -r1.33 -r1.34
--- src/hg/instinct/lib/featuresLib.c	7 May 2010 05:40:48 -0000	1.33
+++ src/hg/instinct/lib/featuresLib.c	7 May 2010 21:18:54 -0000	1.34
@@ -333,9 +333,13 @@
 struct slName *retList = NULL;
 for (id = idList; id; id = id->next)
     {
     if ((el = hashLookup(hash, id->name)) == NULL)
-	slNameAddHead(&retList, NULL);
+	{
+	struct slName *sl = AllocA(struct slName);
+	sl->name[0] = 0;
+	slAddHead(&retList, sl); // NULL);
+	}
     else
 	slNameAddHead(&retList, el->val);
     }
 slReverse(&retList);