aad6bf773d8709e5f40e5c389a8ea2a7b77d586b
braney
Thu Oct 6 18:10:59 2011 -0700
oops... need to initialize this
diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index 9180bce..0f7aacd 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -260,31 +260,31 @@
printf("
\n");
printf("No Public Track Hubs for this genome assembly
");
}
printf("
");
hDisconnectCentral(&conn);
}
static void tryHubOpen(unsigned id)
/* try to open hub, leaks trackHub structure */
{
/* try opening this again to reset error */
struct sqlConnection *conn = hConnectCentral();
struct errCatch *errCatch = errCatchNew();
-struct hubConnectStatus *hub;
+struct hubConnectStatus *hub = NULL;
if (errCatchStart(errCatch))
hub = hubConnectStatusForId(conn, id);
errCatchEnd(errCatch);
if (errCatch->gotError)
hubUpdateStatus( errCatch->message->string, NULL);
else
hubUpdateStatus(NULL, hub);
errCatchFree(&errCatch);
hDisconnectCentral(&conn);
}
static void doResetHub(struct cart *theCart)
{