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/lib/liftOver.c src/hg/lib/liftOver.c index b901c5b..3fd9242 100644 --- src/hg/lib/liftOver.c +++ src/hg/lib/liftOver.c @@ -1298,31 +1298,31 @@ { struct lineFile *lf = lineFileOpen(fileName, TRUE); int wordCount; int bedFieldCount = bedPlus; char *line; int ct = 0; if (lineFileNextReal(lf, &line)) { line = cloneString(line); if (tabSep) { wordCount = chopByChar(line, '\t', NULL, LIFTOVER_MAX_WORDS); } else - wordCount = chopLine(line, NULL); + wordCount = chopLine(line, 0); if (wordCount > LIFTOVER_MAX_WORDS) errAbort("Too many fields. Fieldcount %d > maximum fields %d in file %s", wordCount, LIFTOVER_MAX_WORDS, fileName); if (hasBin) wordCount--; lineFileReuse(lf); freez(&line); if (wordCount < 3) errAbort("Data format error: expecting at least 3 fields in BED file (%s)", fileName); if (bedFieldCount == 0) bedFieldCount = wordCount; if (bedFieldCount <= 10) { ct = bedOverSmallEnds(lf, wordCount, chainHash, minMatch,