1c973eceda6085a97d97214e17df90125316fd58 larrym Tue May 8 11:52:54 2012 -0700 add a missing cloneString diff --git src/hg/lib/cart.c src/hg/lib/cart.c index e8a1c8e..5c929d3 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -1541,31 +1541,31 @@ char *styleFile = options[0]; if(isNotEmpty(styleFile)) { char * link = webTimeStampedLinkToResourceOnFirstCall(styleFile,TRUE); // resource file link wrapped in html if (link) { htmlSetStyleTheme(link); // for htmshell.c, used by hgTracks webSetStyle(link); // for web.c, used by hgc } } if(optionCount >= 2) { char *background = options[1]; if(isNotEmpty(background)) - htmlSetBackground(background); + htmlSetBackground(cloneString(background)); } freeMem(options[0]); freez(&options); } void cartHtmlShellWithHead(char *head, char *title, void (*doMiddle)(struct cart *cart), char *cookieName, char **exclude, struct hash *oldVars) /* Load cart from cookie and session cgi variable. Write web-page * preamble including head and title, call doMiddle with cart, and write end of web-page. * Exclude may be NULL. If it exists it's a comma-separated list of * variables that you don't want to save in the cart between * invocations of the cgi-script. */ { struct cart *cart;