00845517a81110e655e0ba58b0e697d64edd73c0
hiram
  Fri Apr 14 07:20:29 2017 -0700
fixup compile error refs #18736

diff --git src/hg/lib/barChartUi.c src/hg/lib/barChartUi.c
index 78b3cec..ac8161a 100644
--- src/hg/lib/barChartUi.c
+++ src/hg/lib/barChartUi.c
@@ -166,31 +166,31 @@
  * TODO: Consider removing table code */
 {
 struct barChartCategory *categs = NULL;
 char *words[BAR_CHART_MAX_CATEGORIES];
 char *colorWords[BAR_CHART_MAX_CATEGORIES];
 char *labels = trackDbSettingClosestToHome(tdb, BAR_CHART_CATEGORY_LABELS);
 char *colors = trackDbSettingClosestToHome(tdb, BAR_CHART_CATEGORY_COLORS);
 struct barChartCategory *categ = NULL;
 
 if (labels == NULL)
     {
     categs = barChartGetCategories(database, tdb->table);
     }
 else
     {
-    struct rgbColor *rainbow;
+    struct rgbColor *rainbow = NULL;
     int count = chopLine(cloneString(labels), words);
     if (colors == NULL)
         rainbow = getRainbow(&saturatedRainbowAtPos, count);
     else
         {
         int colorCount = chopLine(cloneString(colors), colorWords);
         if (colorCount != count)
             warn("barChart track %s mismatch between label (%d)  and color (%d) settings", 
                     tdb->track, count, colorCount);
         }
     int i;
     char buf[6];
     for (i=0; i<count; i++)
         {
         AllocVar(categ);