e04611c46635c17ac530713aa840a346bb79ec01 tdreszer Mon Sep 12 10:44:54 2011 -0700 Wow, a stray ';' bug. Took awhile to notice that. diff --git src/hg/lib/mdb.c src/hg/lib/mdb.c index 6129fe7..db821c3 100644 --- src/hg/lib/mdb.c +++ src/hg/lib/mdb.c @@ -3245,31 +3245,31 @@ char *label = NULL; if (varHash != NULL) { struct hash *valHash = hashFindVal(varHash,val); if (valHash != NULL) { label = cloneString(hashOptionalVal(valHash,CV_LABEL,row[0])); if (tags) { char *tag = hashFindVal(valHash,CV_TAG); if (tag != NULL) val = tag; } } } - if (label == NULL); + if (label == NULL) label = cloneString(row[0]); label = strSwapChar(label,'_',' '); // vestigial _ meaning space slPairAdd(&pairs,val,label); } sqlFreeResult(&sr); if (slCount(pairs) > 0) { // should have a list sorted on the label enum cvDataType eCvDataType = cvDataType(var); if (eCvDataType == cvInteger) slPairValAtoiSort(&pairs); else slPairValSortCase(&pairs); } return pairs;