11c1c560b88d430fd2c6967a86d2e87109806357
max
  Fri Jan 24 09:15:03 2014 -0800
corrections after code review refs #12524. These changes probably don'tneed to reviewed anymore, as Angie has already seen them, I copied them into
the ticket #12524.

diff --git src/lib/linefile.c src/lib/linefile.c
index f34bc03..c50bd9e 100644
--- src/lib/linefile.c
+++ src/lib/linefile.c
@@ -280,44 +280,47 @@
     ti_iter_destroy(lf->tabixIter);
 lf->tabixIter = iter;
 lf->bufOffsetInFile = ti_bgzf_tell(lf->tabix->fp);
 lf->bytesInBuf = 0;
 lf->lineIx = -1;
 lf->lineStart = 0;
 lf->lineEnd = 0;
 return TRUE;
 #else // no USE_TABIX
 warn(COMPILE_WITH_TABIX, "lineFileSetTabixRegion");
 return FALSE;
 #endif // no USE_TABIX
 }
 
 struct lineFile *lineFileUdcMayOpen(char *fileOrUrl, bool zTerm)
-/* Create a line file object with an underlying UDC cache. */
+/* Create a line file object with an underlying UDC cache. NULL if not found. */
 {
 if (fileOrUrl == NULL)
     errAbort("lineFileUdcMayOpen: fileOrUrl is NULL");
+
+struct udcFile *udcFile = udcFileMayOpen(fileOrUrl, NULL);
+if (udcFile == NULL)
+    return NULL;
+
 struct lineFile *lf;
 AllocVar(lf);
 lf->fileName = cloneString(fileOrUrl);
 lf->fd = -1;
 lf->bufSize = 0;
 lf->buf = NULL;
 lf->zTerm = zTerm;
-lf->udcFile = udcFileMayOpen(fileOrUrl, NULL);
-if (lf->udcFile == NULL)
-    return NULL;
+lf->udcFile = udcFile;
 return lf;
 }
 
 
 void lineFileExpandBuf(struct lineFile *lf, int newSize)
 /* Expand line file buffer. */
 {
 assert(newSize > lf->bufSize);
 lf->buf = needMoreMem(lf->buf, lf->bytesInBuf, newSize);
 lf->bufSize = newSize;
 }
 
 
 struct lineFile *lineFileStdin(bool zTerm)
 /* Wrap a line file around stdin. */