1c77d240de04728dfcb0e0b3ef973b69c1931728 angie Fri Dec 9 15:06:19 2016 -0800 Instead of adding setUdcCacheDir just before every call that opens a cart, call setUdcCacheDir at the beginning of cartNew. refs #18524 diff --git src/hg/phyloPng/phyloPng.c src/hg/phyloPng/phyloPng.c index 9aaa67b..3fc4ce7 100644 --- src/hg/phyloPng/phyloPng.c +++ src/hg/phyloPng/phyloPng.c @@ -348,31 +348,30 @@ char *phyloData = NULL, *temp = NULL; struct phyloTree *phyloTree = NULL; int maxDepth = 0, numLeafs = 0, maxLabelWidth = 0; double minMaxFactor = 0.0; struct memGfx *mg = NULL; boolean useCart = FALSE; oldVars = hashNew(8); onWeb = cgiIsOnWeb(); boolean isMSIE = FALSE; char *userAgent = getenv("HTTP_USER_AGENT"); if (userAgent && strstr(userAgent ,"MSIE")) isMSIE = TRUE; cgiSpoof(&argc, argv); -setUdcCacheDir(); if (argc != 1) usage("wrong number of args"); if (onWeb) { /* this will cause it to kick out the set-cookie: http response header line */ cart = cartAndCookieNoContent(hUserCookie(), excludeVars, oldVars); } else { if (!cgiOptionalString("phyloPng_tree")) usage("-phyloPng_tree is a required 'option' or cgi variable."); } useCart = (!cgiOptionalString("phyloPng_tree") || cgiVarExists("phyloPng_restore"));