888bc566ca6eee88ace3930c9b59cb7ad24b5697 braney Wed May 28 11:57:46 2014 -0700 some code clean-ups in response to code review diff --git src/hg/lib/cart.c src/hg/lib/cart.c index eeb848a..afa2672 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -621,30 +621,31 @@ return cart; } static void doDisconnectHub(struct cart *cart) { char *id = cartOptionalString(cart, "hubId"); if (id != NULL) { char buffer[1024]; safef(buffer, sizeof buffer, "hgHubConnect.hub.%s", id); cartRemove(cart, buffer); } cartRemove(cart, "hubId"); +cartRemove(cart, hgHubDoDisconnect); } struct cart *cartNew(char *userId, char *sessionId, char **exclude, struct hash *oldVars) /* Load up cart from user & session id's. Exclude is a null-terminated list of * strings to not include */ { cgiApoptosisSetup(); struct cart *cart; struct sqlConnection *conn = cartDefaultConnector(); char *ex; boolean userIdFound = FALSE, sessionIdFound = FALSE; AllocVar(cart); cart->hash = newHash(12);