src/hg/hgTracks/imageV2.c 1.32

1.32 2010/05/24 19:53:42 hiram
fixup URLs that may have blanks in them, do not quote the whole thing
Index: src/hg/hgTracks/imageV2.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/imageV2.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -B -U 4 -r1.31 -r1.32
--- src/hg/hgTracks/imageV2.c	24 May 2010 19:40:06 -0000	1.31
+++ src/hg/hgTracks/imageV2.c	24 May 2010 19:53:42 -0000	1.32
@@ -1399,19 +1399,19 @@
            item->topLeftX, item->topLeftY, item->bottomRightX, item->bottomRightY);
     // TODO: remove static portion of the link and handle in js
     if(map->linkRoot != NULL)
         {
-        if(skipToSpaces(item->linkVar) != NULL)
+        if(skipToSpaces(item->linkVar))
             hPrintf(" HREF=%s%s",map->linkRoot,(item->linkVar != NULL?item->linkVar:""));
         else
             hPrintf(" HREF='%s%s'",map->linkRoot,(item->linkVar != NULL?item->linkVar:""));
         }
     else if(item->linkVar != NULL)
         {
-        if(skipToSpaces(item->linkVar) != NULL)
-            hPrintf(" HREF='%s'",item->linkVar);
-        else
+        if(skipToSpaces(item->linkVar))
             hPrintf(" HREF=%s",item->linkVar);
+	else
+            hPrintf(" HREF='%s'",item->linkVar);
         }
     else
         warn("map item has no url!");