6f07cab7fdf96c16066566d551fc310d0d8afb52
max
  Tue Mar 1 13:36:13 2016 -0800
for patents track, refs #14486:
- two additional trackDb statements to remove or separate extra fields
of bigBed files in track hubs
- changes to hgc to format extra fields as a table, looks somewhat
nicer
- two scripts to reformat patent tables to bigBed files

diff --git src/lib/common.c src/lib/common.c
index 4eb60b8..6f852e5 100644
--- src/lib/common.c
+++ src/lib/common.c
@@ -2268,34 +2268,34 @@
 {
 char *startFirstWord = skipLeadingSpaces(line);
 if (startFirstWord == NULL)
     return NULL;
 char *endFirstWord = skipToSpaces(startFirstWord);
 if (endFirstWord == NULL)
     return cloneString(startFirstWord);
 else
     return cloneStringZ(startFirstWord, endFirstWord - startFirstWord);
 }
 
 char *cloneNotFirstWord(char *s)
 /* return part of string after first space, not changing s. Result has to be freed. */
 {
 if (s==NULL)
-    return "";
+    return emptyForNull(NULL);
 char* spcPos = stringIn(" ", s);
 if (spcPos==NULL)
-    return cloneString(s);
+    return emptyForNull(NULL);
 return cloneString(spcPos+1);
 }
 
 char *lastWordInLine(char *line)
 /* Returns last word in line if any (white space separated).
  * Returns NULL if string is empty.  Removes any terminating white space
  * from line. */
 {
 char *s = line;
 char *word = NULL, *wordEnd = NULL;
 for (;;)
     {
     s = skipLeadingSpaces(s);
     if (s == NULL || s[0] == 0)
 	break;