d61df7dc771a130c58e59709121e41b9ec85b4c8
galt
  Sat Jan 4 21:53:30 2025 -0800
Fixes for the many compiler issues with ArraySize called on NULL. Now compiles without any errors, warnings, or pramga.

diff --git src/hg/encode/hgEncodeVocab/hgEncodeVocab.c src/hg/encode/hgEncodeVocab/hgEncodeVocab.c
index 6b23d8b..ac460cc 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,NULL);
+    requestCount = chopCommas(requestVal,0);
     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