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/lib/liftOver.c src/hg/lib/liftOver.c index 3fd9242..b901c5b 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, 0); + wordCount = chopLine(line, NULL); 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,