af856e8ae4df16b4a41609d7ac6e649244682dec braney Tue Jan 7 17:16:27 2025 -0800 Revert "Fixes for the many compiler issues with ArraySize called on NULL. Now compiles without any errors, warnings, or pramga." This reverts commit d61df7dc771a130c58e59709121e41b9ec85b4c8. diff --git src/hg/encode/hgEncodeVocab/hgEncodeVocab.c src/hg/encode/hgEncodeVocab/hgEncodeVocab.c index ac460cc..6b23d8b 100644 --- src/hg/encode/hgEncodeVocab/hgEncodeVocab.c +++ src/hg/encode/hgEncodeVocab/hgEncodeVocab.c @@ -781,31 +781,31 @@ queryBy = CV_TAG; } else if (targetOpt) { requestVal = targetOpt; queryBy = CV_TERM; // request target is special: lookup term, convert to target, display target } else if (labelOpt) { requestVal = labelOpt; queryBy = CV_LABEL; } if (requestVal) { (void)stripChar(requestVal,'\"'); - requestCount = chopCommas(requestVal,0); + requestCount = chopCommas(requestVal,NULL); requested = needMem(requestCount * sizeof(char *)); chopByChar(requestVal,',',requested,requestCount); } char *org = NULL; // if the org is specified in the type (eg. cell line) // then use that for the org, otherwise use the command line option, // otherwise use human. char *type = findType(cvHash,requested,requestCount,&queryBy, &org, FALSE); if (org == NULL) org = organismOptLower; if (org == NULL) org = ORG_HUMAN; // Special logic for requesting antibody by target